Uses of Class
net.minecraft.util.context.ContextKey
Packages that use ContextKey
Package
Description
Extension interfaces for
client
-only classes.-
Uses of ContextKey in net.minecraft.util.context
Fields in net.minecraft.util.context with type parameters of type ContextKeyModifier and TypeFieldDescriptionprivate final Set
<ContextKey<?>> ContextKeySet.allowed
private final Set
<ContextKey<?>> ContextKeySet.Builder.optional
private final Map
<ContextKey<?>, Object> ContextMap.Builder.params
private final Map
<ContextKey<?>, Object> ContextMap.params
private final Set
<ContextKey<?>> ContextKeySet.Builder.required
private final Set
<ContextKey<?>> ContextKeySet.required
Methods in net.minecraft.util.context that return ContextKeyMethods in net.minecraft.util.context that return types with arguments of type ContextKeyModifier and TypeMethodDescriptionSet
<ContextKey<?>> ContextKeySet.allowed()
Set
<ContextKey<?>> ContextKeySet.required()
Methods in net.minecraft.util.context with parameters of type ContextKeyModifier and TypeMethodDescription<T> T
ContextMap.getOptional
(ContextKey<T> p_381151_) <T> T
ContextMap.Builder.getOptionalParameter
(ContextKey<T> p_381048_) <T> T
ContextMap.getOrDefault
(ContextKey<T> p_381114_, T p_380947_) <T> T
ContextMap.getOrThrow
(ContextKey<T> p_380981_) <T> T
ContextMap.Builder.getParameter
(ContextKey<T> p_380972_) boolean
ContextMap.has
(ContextKey<?> p_380966_) ContextKeySet.Builder.optional
(ContextKey<?> p_381112_) ContextKeySet.Builder.required
(ContextKey<?> p_380985_) ContextMap.Builder.withOptionalParameter
(ContextKey<T> p_381089_, T p_381019_) ContextMap.Builder.withParameter
(ContextKey<T> p_380968_, T p_381024_) Constructor parameters in net.minecraft.util.context with type arguments of type ContextKeyModifierConstructorDescription(package private)
ContextKeySet
(Set<ContextKey<?>> p_381057_, Set<ContextKey<?>> p_381141_) (package private)
ContextMap
(Map<ContextKey<?>, Object> p_381157_) -
Uses of ContextKey in net.minecraft.world.item.crafting.display
Fields in net.minecraft.world.item.crafting.display declared as ContextKeyModifier and TypeFieldDescriptionstatic final ContextKey
<FuelValues> SlotDisplayContext.FUEL_VALUES
static final ContextKey
<HolderLookup.Provider> SlotDisplayContext.REGISTRIES
-
Uses of ContextKey in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot declared as ContextKeyModifier and TypeFieldDescriptionprivate final ContextKey
<? extends Entity> LootContext.EntityTarget.param
Methods in net.minecraft.world.level.storage.loot that return ContextKeyModifier and TypeMethodDescriptionContextKey
<? extends Entity> LootContext.EntityTarget.getParam()
Methods in net.minecraft.world.level.storage.loot that return types with arguments of type ContextKeyModifier and TypeMethodDescriptionSet
<ContextKey<?>> IntRange.getReferencedContextParams()
default Set
<ContextKey<?>> LootContextUser.getReferencedContextParams()
Methods in net.minecraft.world.level.storage.loot with parameters of type ContextKeyModifier and TypeMethodDescription<T> T
LootContext.getOptionalParameter
(ContextKey<T> p_380975_) <T> T
LootParams.Builder.getOptionalParameter
(ContextKey<T> p_381097_) <T> T
LootContext.getParameter
(ContextKey<T> p_381164_) <T> T
LootParams.Builder.getParameter
(ContextKey<T> p_381125_) boolean
LootContext.hasParameter
(ContextKey<?> p_381161_) LootParams.Builder.withOptionalParameter
(ContextKey<T> p_381070_, T p_287630_) LootParams.Builder.withParameter
(ContextKey<T> p_381018_, T p_287606_) Constructors in net.minecraft.world.level.storage.loot with parameters of type ContextKeyModifierConstructorDescriptionprivate
EntityTarget
(String p_79001_, ContextKey<? extends Entity> p_380963_) -
Uses of ContextKey in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as ContextKeyModifier and TypeFieldDescription(package private) final ContextKey
<?> CopyNameFunction.NameSource.param
Methods in net.minecraft.world.level.storage.loot.functions that return types with arguments of type ContextKeyModifier and TypeMethodDescriptionSet
<ContextKey<?>> ApplyBonusCount.getReferencedContextParams()
Set
<ContextKey<?>> CopyBlockState.getReferencedContextParams()
Set
<ContextKey<?>> CopyComponentsFunction.getReferencedContextParams()
Set
<ContextKey<?>> CopyComponentsFunction.Source.getReferencedContextParams()
Set
<ContextKey<?>> CopyCustomDataFunction.getReferencedContextParams()
Set
<ContextKey<?>> CopyNameFunction.getReferencedContextParams()
Set
<ContextKey<?>> EnchantedCountIncreaseFunction.getReferencedContextParams()
Set
<ContextKey<?>> EnchantWithLevelsFunction.getReferencedContextParams()
Set
<ContextKey<?>> ExplorationMapFunction.getReferencedContextParams()
Set
<ContextKey<?>> FillPlayerHead.getReferencedContextParams()
Set
<ContextKey<?>> LimitCount.getReferencedContextParams()
Set
<ContextKey<?>> SetAttributesFunction.getReferencedContextParams()
Set
<ContextKey<?>> SetCustomModelDataFunction.getReferencedContextParams()
Set
<ContextKey<?>> SetEnchantmentsFunction.getReferencedContextParams()
Set
<ContextKey<?>> SetItemCountFunction.getReferencedContextParams()
Set
<ContextKey<?>> SetItemDamageFunction.getReferencedContextParams()
Set
<ContextKey<?>> SetLoreFunction.getReferencedContextParams()
Set
<ContextKey<?>> SetNameFunction.getReferencedContextParams()
Set
<ContextKey<?>> SetOminousBottleAmplifierFunction.getReferencedContextParams()
Set
<ContextKey<?>> SetStewEffectFunction.getReferencedContextParams()
Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type ContextKey -
Uses of ContextKey in net.minecraft.world.level.storage.loot.parameters
Fields in net.minecraft.world.level.storage.loot.parameters declared as ContextKeyModifier and TypeFieldDescriptionstatic final ContextKey
<Entity> LootContextParams.ATTACKING_ENTITY
static final ContextKey
<BlockEntity> LootContextParams.BLOCK_ENTITY
static final ContextKey
<BlockState> LootContextParams.BLOCK_STATE
static final ContextKey
<DamageSource> LootContextParams.DAMAGE_SOURCE
static final ContextKey
<Entity> LootContextParams.DIRECT_ATTACKING_ENTITY
static final ContextKey
<Boolean> LootContextParams.ENCHANTMENT_ACTIVE
static final ContextKey
<Integer> LootContextParams.ENCHANTMENT_LEVEL
static final ContextKey
<Float> LootContextParams.EXPLOSION_RADIUS
static final ContextKey
<Player> LootContextParams.LAST_DAMAGE_PLAYER
static final ContextKey
<Vec3> LootContextParams.ORIGIN
static final ContextKey
<Entity> LootContextParams.THIS_ENTITY
static final ContextKey
<ItemStack> LootContextParams.TOOL
-
Uses of ContextKey in net.minecraft.world.level.storage.loot.predicates
Methods in net.minecraft.world.level.storage.loot.predicates that return types with arguments of type ContextKeyModifier and TypeMethodDescriptionSet
<ContextKey<?>> BonusLevelTableCondition.getReferencedContextParams()
Set
<ContextKey<?>> DamageSourceCondition.getReferencedContextParams()
Set
<ContextKey<?>> EnchantmentActiveCheck.getReferencedContextParams()
Set
<ContextKey<?>> EntityHasScoreCondition.getReferencedContextParams()
Set
<ContextKey<?>> ExplosionCondition.getReferencedContextParams()
Set
<ContextKey<?>> InvertedLootItemCondition.getReferencedContextParams()
Set
<ContextKey<?>> LocationCheck.getReferencedContextParams()
Set
<ContextKey<?>> LootItemBlockStatePropertyCondition.getReferencedContextParams()
Set
<ContextKey<?>> LootItemEntityPropertyCondition.getReferencedContextParams()
Set
<ContextKey<?>> LootItemKilledByPlayerCondition.getReferencedContextParams()
Set
<ContextKey<?>> LootItemRandomChanceWithEnchantedBonusCondition.getReferencedContextParams()
Set
<ContextKey<?>> MatchTool.getReferencedContextParams()
Set
<ContextKey<?>> TimeCheck.getReferencedContextParams()
Set
<ContextKey<?>> ValueCheckCondition.getReferencedContextParams()
-
Uses of ContextKey in net.minecraft.world.level.storage.loot.providers.nbt
Methods in net.minecraft.world.level.storage.loot.providers.nbt that return types with arguments of type ContextKeyModifier and TypeMethodDescriptionSet
<ContextKey<?>> ContextNbtProvider.getReferencedContextParams()
Set
<ContextKey<?>> ContextNbtProvider.Getter.getReferencedContextParams()
Set
<ContextKey<?>> NbtProvider.getReferencedContextParams()
Set
<ContextKey<?>> StorageNbtProvider.getReferencedContextParams()
-
Uses of ContextKey in net.minecraft.world.level.storage.loot.providers.number
Methods in net.minecraft.world.level.storage.loot.providers.number that return types with arguments of type ContextKeyModifier and TypeMethodDescriptionSet
<ContextKey<?>> BinomialDistributionGenerator.getReferencedContextParams()
Set
<ContextKey<?>> ScoreboardValue.getReferencedContextParams()
Set
<ContextKey<?>> UniformGenerator.getReferencedContextParams()
-
Uses of ContextKey in net.minecraft.world.level.storage.loot.providers.score
Methods in net.minecraft.world.level.storage.loot.providers.score that return types with arguments of type ContextKeyModifier and TypeMethodDescriptionSet
<ContextKey<?>> ContextScoreboardNameProvider.getReferencedContextParams()
Set
<ContextKey<?>> FixedScoreboardNameProvider.getReferencedContextParams()
Set
<ContextKey<?>> ScoreboardNameProvider.getReferencedContextParams()
-
Uses of ContextKey in net.neoforged.neoforge.client.extensions
Methods in net.neoforged.neoforge.client.extensions with parameters of type ContextKeyModifier and TypeMethodDescription<T> T
IRenderStateExtension.getRenderData
(ContextKey<T> key) Gets the object associated with the given key.default <T> T
IRenderStateExtension.getRenderDataOrDefault
(ContextKey<T> key, T defaultVal) Gets the value or returns the default object if an object is not presentdefault <T> T
IRenderStateExtension.getRenderDataOrThrow
(ContextKey<T> key) Gets the value or throws an exception.<T> void
IRenderStateExtension.setRenderData
(ContextKey<T> key, T data) Sets the object associated with the given key. -
Uses of ContextKey in net.neoforged.neoforge.client.model
Fields in net.neoforged.neoforge.client.model declared as ContextKeyModifier and TypeFieldDescriptionstatic final ContextKey
<Map<String, Boolean>> NeoForgeModelProperties.PART_VISIBILITY
Part visibilities.static final ContextKey
<RenderTypeGroup> NeoForgeModelProperties.RENDER_TYPE
Render type to use.static final ContextKey
<Transformation> NeoForgeModelProperties.TRANSFORM
Root transform. -
Uses of ContextKey in net.neoforged.neoforge.client.renderstate
Fields in net.neoforged.neoforge.client.renderstate with type parameters of type ContextKeyModifier and TypeFieldDescriptionprotected final Map
<ContextKey<?>, Object> BaseRenderState.extensions
Methods in net.neoforged.neoforge.client.renderstate with parameters of type ContextKeyModifier and TypeMethodDescription<T> T
BaseRenderState.getRenderData
(ContextKey<T> key) <T> void
BaseRenderState.setRenderData
(ContextKey<T> key, T data) -
Uses of ContextKey in net.neoforged.neoforge.common.loot
Methods in net.neoforged.neoforge.common.loot that return types with arguments of type ContextKeyModifier and TypeMethodDescriptionSet
<ContextKey<?>> CanItemPerformAbility.getReferencedContextParams()