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.allowedprivate final Set<ContextKey<?>> ContextKeySet.Builder.optionalprivate final Map<ContextKey<?>, Object> ContextMap.Builder.paramsprivate final Map<ContextKey<?>, Object> ContextMap.paramsprivate final Set<ContextKey<?>> ContextKeySet.Builder.requiredprivate final Set<ContextKey<?>> ContextKeySet.requiredMethods 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> @Nullable TContextMap.getOptional(ContextKey<T> key) <T> @Nullable TContextMap.Builder.getOptionalParameter(ContextKey<T> param) <T> @Nullable TContextMap.getOrDefault(ContextKey<T> param, @Nullable T _default) <T> TContextMap.getOrThrow(ContextKey<T> key) <T> TContextMap.Builder.getParameter(ContextKey<T> param) booleanContextMap.has(ContextKey<?> key) ContextKeySet.Builder.optional(ContextKey<?> param) ContextKeySet.Builder.required(ContextKey<?> param) ContextMap.Builder.withOptionalParameter(ContextKey<T> param, @Nullable T value) ContextMap.Builder.withParameter(ContextKey<T> param, T value) Constructor parameters in net.minecraft.util.context with type arguments of type ContextKeyModifierConstructorDescriptionprivateContextKeySet(Set<ContextKey<?>> required, Set<ContextKey<?>> optional) privateContextMap(Map<ContextKey<?>, Object> params) -
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_VALUESstatic final ContextKey<HolderLookup.Provider> SlotDisplayContext.REGISTRIES -
Uses of ContextKey in net.minecraft.world.item.slot
Methods in net.minecraft.world.item.slot that return types with arguments of type ContextKeyModifier and TypeMethodDescriptionSet<ContextKey<?>> RangeSlotSource.getReferencedContextParams() -
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 BlockEntity> LootContext.BlockEntityTarget.paramprivate final ContextKey<? extends Entity> LootContext.EntityTarget.paramprivate final ContextKey<? extends ItemInstance> LootContext.ItemStackTarget.paramFields in net.minecraft.world.level.storage.loot with type parameters of type ContextKeyModifier and TypeFieldDescriptionprivate final Set<ContextKey<?>> ValidationContext.ParametersNotProvidedProblem.notProvidedThe field for thenotProvidedrecord component.Methods in net.minecraft.world.level.storage.loot that return ContextKeyModifier and TypeMethodDescriptionContextKey<? extends BlockEntity> LootContext.BlockEntityTarget.contextParam()ContextKey<? extends Entity> LootContext.EntityTarget.contextParam()ContextKey<? extends ItemInstance> LootContext.ItemStackTarget.contextParam()ContextKey<?> LootContextArg.contextParam()ContextKey<? extends T> LootContextArg.Getter.contextParam()ContextKey<? extends T> LootContextArg.SimpleGetter.contextParam()Methods in net.minecraft.world.level.storage.loot that return types with arguments of type ContextKeyModifier and TypeMethodDescriptiondefault Set<ContextKey<?>> LootContextUser.getReferencedContextParams()Set<ContextKey<?>> ValidationContext.ParametersNotProvidedProblem.notProvided()Returns the value of thenotProvidedrecord component.Methods in net.minecraft.world.level.storage.loot with parameters of type ContextKeyModifier and TypeMethodDescription<T> @Nullable TLootContext.getOptionalParameter(ContextKey<T> key) <T> @Nullable TLootParams.Builder.getOptionalParameter(ContextKey<T> param) <T> TLootContext.getParameter(ContextKey<T> key) <T> TLootParams.Builder.getParameter(ContextKey<T> param) booleanLootContext.hasParameter(ContextKey<?> key) LootParams.Builder.withOptionalParameter(ContextKey<T> param, @Nullable T value) LootParams.Builder.withParameter(ContextKey<T> param, T value) Method parameters in net.minecraft.world.level.storage.loot with type arguments of type ContextKeyModifier and TypeMethodDescriptionLootContextArg.ArgCodecBuilder.anyBlockEntity(Function<? super ContextKey<? extends BlockEntity>, ? extends LootContextArg<R>> function) LootContextArg.ArgCodecBuilder.anyEntity(Function<? super ContextKey<? extends Entity>, ? extends LootContextArg<R>> function) LootContextArg.ArgCodecBuilder.anyItemStack(Function<? super ContextKey<? extends ItemInstance>, ? extends LootContextArg<R>> function) Constructors in net.minecraft.world.level.storage.loot with parameters of type ContextKeyModifierConstructorDescriptionprivateBlockEntityTarget(String name, ContextKey<? extends BlockEntity> param) privateEntityTarget(String name, ContextKey<? extends Entity> param) privateItemStackTarget(String name, ContextKey<? extends ItemInstance> param) Constructor parameters in net.minecraft.world.level.storage.loot with type arguments of type ContextKeyModifierConstructorDescriptionParametersNotProvidedProblem(Set<ContextKey<?>> notProvided) Creates an instance of aParametersNotProvidedProblemrecord class. -
Uses of ContextKey in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as ContextKeyModifier and TypeFieldDescriptionprivate final ContextKey<? extends BlockEntity> CopyComponentsFunction.BlockEntitySource.contextParamThe field for thecontextParamrecord component.private final ContextKey<? extends T> CopyComponentsFunction.DirectSource.contextParamThe field for thecontextParamrecord component.Methods in net.minecraft.world.level.storage.loot.functions that return ContextKeyModifier and TypeMethodDescriptionContextKey<? extends BlockEntity> CopyComponentsFunction.BlockEntitySource.contextParam()Returns the value of thecontextParamrecord component.ContextKey<? extends T> CopyComponentsFunction.DirectSource.contextParam()Returns the value of thecontextParamrecord component.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<?>> CopyNameFunction.getReferencedContextParams()Set<ContextKey<?>> EnchantedCountIncreaseFunction.getReferencedContextParams()Set<ContextKey<?>> EnchantRandomlyFunction.getReferencedContextParams()Set<ContextKey<?>> EnchantWithLevelsFunction.getReferencedContextParams()Set<ContextKey<?>> ExplorationMapFunction.getReferencedContextParams()Set<ContextKey<?>> FillPlayerHead.getReferencedContextParams()Set<ContextKey<?>> SetLoreFunction.getReferencedContextParams()Set<ContextKey<?>> SetNameFunction.getReferencedContextParams()Methods in net.minecraft.world.level.storage.loot.functions with parameters of type ContextKeyModifier and TypeMethodDescriptionCopyComponentsFunction.copyComponentsFromBlockEntity(ContextKey<? extends BlockEntity> source) CopyComponentsFunction.copyComponentsFromEntity(ContextKey<? extends Entity> source) Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type ContextKeyModifierConstructorDescriptionprivateBlockEntitySource(ContextKey<? extends BlockEntity> contextParam) Creates an instance of aBlockEntitySourcerecord class.privateDirectSource(ContextKey<? extends T> contextParam) Creates an instance of aDirectSourcerecord class. -
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<Unit> LootContextParams.ADDITIONAL_COST_COMPONENT_ALLOWEDstatic final ContextKey<Entity> LootContextParams.ATTACKING_ENTITYstatic final ContextKey<BlockEntity> LootContextParams.BLOCK_ENTITYstatic final ContextKey<BlockState> LootContextParams.BLOCK_STATEstatic final ContextKey<DamageSource> LootContextParams.DAMAGE_SOURCEstatic final ContextKey<Entity> LootContextParams.DIRECT_ATTACKING_ENTITYstatic final ContextKey<Boolean> LootContextParams.ENCHANTMENT_ACTIVEstatic final ContextKey<Integer> LootContextParams.ENCHANTMENT_LEVELstatic final ContextKey<Float> LootContextParams.EXPLOSION_RADIUSstatic final ContextKey<Entity> LootContextParams.INTERACTING_ENTITYstatic final ContextKey<Player> LootContextParams.LAST_DAMAGE_PLAYERstatic final ContextKey<Vec3> LootContextParams.ORIGINstatic final ContextKey<Entity> LootContextParams.TARGET_ENTITYstatic final ContextKey<Entity> LootContextParams.THIS_ENTITYstatic final ContextKey<ItemInstance> 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<?>> LocationCheck.getReferencedContextParams()Set<ContextKey<?>> LootItemBlockStatePropertyCondition.getReferencedContextParams()Set<ContextKey<?>> LootItemEntityPropertyCondition.getReferencedContextParams()Set<ContextKey<?>> LootItemKilledByPlayerCondition.getReferencedContextParams()Set<ContextKey<?>> LootItemRandomChanceWithEnchantedBonusCondition.getReferencedContextParams()Set<ContextKey<?>> MatchTool.getReferencedContextParams() -
Uses of ContextKey in net.minecraft.world.level.storage.loot.providers.nbt
Fields in net.minecraft.world.level.storage.loot.providers.nbt declared as ContextKeyModifier and TypeFieldDescriptionprivate final ContextKey<? extends BlockEntity> ContextNbtProvider.BlockEntitySource.contextParamThe field for thecontextParamrecord component.private final ContextKey<? extends Entity> ContextNbtProvider.EntitySource.contextParamThe field for thecontextParamrecord component.Methods in net.minecraft.world.level.storage.loot.providers.nbt that return ContextKeyModifier and TypeMethodDescriptionContextKey<? extends BlockEntity> ContextNbtProvider.BlockEntitySource.contextParam()Returns the value of thecontextParamrecord component.ContextKey<? extends Entity> ContextNbtProvider.EntitySource.contextParam()Returns the value of thecontextParamrecord component.Methods in net.minecraft.world.level.storage.loot.providers.nbt that return types with arguments of type ContextKeyModifier and TypeMethodDescriptionSet<ContextKey<?>> ContextNbtProvider.getReferencedContextParams()Constructors in net.minecraft.world.level.storage.loot.providers.nbt with parameters of type ContextKeyModifierConstructorDescriptionprivateBlockEntitySource(ContextKey<? extends BlockEntity> contextParam) Creates an instance of aBlockEntitySourcerecord class.privateEntitySource(ContextKey<? extends Entity> contextParam) Creates an instance of aEntitySourcerecord class. -
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() -
Uses of ContextKey in net.neoforged.neoforge.client
Fields in net.neoforged.neoforge.client declared as ContextKeyModifier and TypeFieldDescriptionprivate static final ContextKey<List<BlockEntityRenderBoundsDebugRenderer.BlockEntityRenderBoundsRenderState>> BlockEntityRenderBoundsDebugRenderer.DATA_KEY -
Uses of ContextKey in net.neoforged.neoforge.client.extensions
Methods in net.neoforged.neoforge.client.extensions with parameters of type ContextKeyModifier and TypeMethodDescription<T> @Nullable TIRenderStateExtension.getRenderData(ContextKey<T> key) Gets the object associated with the given key.default <T> TIRenderStateExtension.getRenderDataOrDefault(ContextKey<T> key, T defaultVal) Gets the value or returns the default object if an object is not presentdefault <T> TIRenderStateExtension.getRenderDataOrThrow(ContextKey<T> key) Gets the value or throws an exception.<T> voidIRenderStateExtension.setRenderData(ContextKey<T> key, @Nullable 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_VISIBILITYPart visibilities.static final ContextKey<Transformation> NeoForgeModelProperties.TRANSFORMRoot 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.extensionsMethods in net.neoforged.neoforge.client.renderstate with parameters of type ContextKeyModifier and TypeMethodDescription<T> @Nullable TBaseRenderState.getRenderData(ContextKey<T> key) <T> voidBaseRenderState.setRenderData(ContextKey<T> key, @Nullable 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()