Uses of Class
net.minecraft.util.context.ContextParameter
Packages that use ContextParameter
Package
Description
-
Uses of ContextParameter in net.minecraft.loot
Fields in net.minecraft.loot with type parameters of type ContextParameterModifier and TypeFieldDescriptionprivate final Set<ContextParameter<?>> LootTableReporter.ParametersNotProvidedError.notProvidedThe field for thenotProvidedrecord component.Methods in net.minecraft.loot that return types with arguments of type ContextParameterModifier and TypeMethodDescriptionSet<ContextParameter<?>> LootTableReporter.ParametersNotProvidedError.notProvided()Returns the value of thenotProvidedrecord component.Constructor parameters in net.minecraft.loot with type arguments of type ContextParameter -
Uses of ContextParameter in net.minecraft.loot.condition
Methods in net.minecraft.loot.condition that return types with arguments of type ContextParameterModifier and TypeMethodDescriptionSet<ContextParameter<?>> BlockStatePropertyLootCondition.getAllowedParameters()Set<ContextParameter<?>> DamageSourcePropertiesLootCondition.getAllowedParameters()Set<ContextParameter<?>> EnchantmentActiveCheckLootCondition.getAllowedParameters()Set<ContextParameter<?>> EntityPropertiesLootCondition.getAllowedParameters()Set<ContextParameter<?>> EntityScoresLootCondition.getAllowedParameters()Set<ContextParameter<?>> InvertedLootCondition.getAllowedParameters()Set<ContextParameter<?>> KilledByPlayerLootCondition.getAllowedParameters()Set<ContextParameter<?>> LocationCheckLootCondition.getAllowedParameters()Set<ContextParameter<?>> MatchToolLootCondition.getAllowedParameters()Set<ContextParameter<?>> RandomChanceWithEnchantedBonusLootCondition.getAllowedParameters()Set<ContextParameter<?>> SurvivesExplosionLootCondition.getAllowedParameters()Set<ContextParameter<?>> TableBonusLootCondition.getAllowedParameters()Set<ContextParameter<?>> TimeCheckLootCondition.getAllowedParameters()Set<ContextParameter<?>> ValueCheckLootCondition.getAllowedParameters() -
Uses of ContextParameter in net.minecraft.loot.context
Fields in net.minecraft.loot.context declared as ContextParameterModifier and TypeFieldDescriptionstatic final ContextParameter<Entity> LootContextParameters.ATTACKING_ENTITYstatic final ContextParameter<BlockEntity> LootContextParameters.BLOCK_ENTITYstatic final ContextParameter<BlockState> LootContextParameters.BLOCK_STATEstatic final ContextParameter<DamageSource> LootContextParameters.DAMAGE_SOURCEstatic final ContextParameter<Entity> LootContextParameters.DIRECT_ATTACKING_ENTITYstatic final ContextParameter<Boolean> LootContextParameters.ENCHANTMENT_ACTIVEstatic final ContextParameter<Integer> LootContextParameters.ENCHANTMENT_LEVELstatic final ContextParameter<Float> LootContextParameters.EXPLOSION_RADIUSstatic final ContextParameter<Entity> LootContextParameters.INTERACTING_ENTITYstatic final ContextParameter<PlayerEntity> LootContextParameters.LAST_DAMAGE_PLAYERstatic final ContextParameter<Vec3d> LootContextParameters.ORIGINprivate final ContextParameter<? extends BlockEntity> LootContext.BlockEntityReference.parameterprivate final ContextParameter<? extends Entity> LootContext.EntityReference.parameterprivate final ContextParameter<? extends ItemStack> LootContext.ItemStackReference.parameterstatic final ContextParameter<Entity> LootContextParameters.TARGET_ENTITYstatic final ContextParameter<Entity> LootContextParameters.THIS_ENTITYstatic final ContextParameter<ItemStack> LootContextParameters.TOOLMethods in net.minecraft.loot.context that return ContextParameterModifier and TypeMethodDescriptionContextParameter<? extends BlockEntity> LootContext.BlockEntityReference.getParameter()ContextParameter<? extends Entity> LootContext.EntityReference.getParameter()ContextParameter<? extends ItemStack> LootContext.ItemStackReference.getParameter()Methods in net.minecraft.loot.context that return types with arguments of type ContextParameterModifier and TypeMethodDescriptiondefault Set<ContextParameter<?>> LootContextAware.getAllowedParameters()Methods in net.minecraft.loot.context with parameters of type ContextParameterModifier and TypeMethodDescriptionLootWorldContext.Builder.add(ContextParameter<T> parameter, T value) LootWorldContext.Builder.addOptional(ContextParameter<T> parameter, T value) <T> TLootContext.get(ContextParameter<T> parameter) <T> TLootWorldContext.Builder.get(ContextParameter<T> parameter) <T> TLootWorldContext.Builder.getOptional(ContextParameter<T> parameter) <T> TLootContext.getOrThrow(ContextParameter<T> parameter) booleanLootContext.hasParameter(ContextParameter<?> parameter) Constructors in net.minecraft.loot.context with parameters of type ContextParameterModifierConstructorDescriptionprivateBlockEntityReference(String id, ContextParameter<? extends BlockEntity> parameter) privateEntityReference(String type, ContextParameter<? extends Entity> parameter) privateItemStackReference(String id, ContextParameter<? extends ItemStack> parameter) -
Uses of ContextParameter in net.minecraft.loot.function
Fields in net.minecraft.loot.function declared as ContextParameterModifier and TypeFieldDescriptionprivate final ContextParameter<? extends BlockEntity> CopyComponentsLootFunction.BlockEntityComponentsSource.contextParamThe field for thecontextParamrecord component.private final ContextParameter<? extends Entity> CopyComponentsLootFunction.EntityComponentsSource.contextParamThe field for thecontextParamrecord component.private final ContextParameter<? extends ItemStack> CopyComponentsLootFunction.ItemStackComponentsSource.contextParamThe field for thecontextParamrecord component.private final ContextParameter<?> CopyNameLootFunction.NameSource.paramThe field for theparamrecord component.Methods in net.minecraft.loot.function that return ContextParameterModifier and TypeMethodDescriptionContextParameter<? extends BlockEntity> CopyComponentsLootFunction.BlockEntityComponentsSource.contextParam()Returns the value of thecontextParamrecord component.ContextParameter<? extends T> CopyComponentsLootFunction.ComponentsSource.contextParam()ContextParameter<? extends Entity> CopyComponentsLootFunction.EntityComponentsSource.contextParam()Returns the value of thecontextParamrecord component.ContextParameter<? extends ItemStack> CopyComponentsLootFunction.ItemStackComponentsSource.contextParam()Returns the value of thecontextParamrecord component.CopyNameLootFunction.NameSource.param()Returns the value of theparamrecord component.Methods in net.minecraft.loot.function that return types with arguments of type ContextParameterModifier and TypeMethodDescriptionSet<ContextParameter<?>> ApplyBonusLootFunction.getAllowedParameters()Set<ContextParameter<?>> CopyComponentsLootFunction.getAllowedParameters()Set<ContextParameter<?>> CopyNameLootFunction.getAllowedParameters()Set<ContextParameter<?>> CopyNbtLootFunction.getAllowedParameters()Set<ContextParameter<?>> CopyStateLootFunction.getAllowedParameters()Set<ContextParameter<?>> EnchantedCountIncreaseLootFunction.getAllowedParameters()Set<ContextParameter<?>> EnchantWithLevelsLootFunction.getAllowedParameters()Set<ContextParameter<?>> ExplorationMapLootFunction.getAllowedParameters()Set<ContextParameter<?>> FillPlayerHeadLootFunction.getAllowedParameters()Set<ContextParameter<?>> LimitCountLootFunction.getAllowedParameters()Set<ContextParameter<?>> SetAttributesLootFunction.getAllowedParameters()Set<ContextParameter<?>> SetCountLootFunction.getAllowedParameters()Set<ContextParameter<?>> SetCustomModelDataLootFunction.getAllowedParameters()Set<ContextParameter<?>> SetDamageLootFunction.getAllowedParameters()Set<ContextParameter<?>> SetEnchantmentsLootFunction.getAllowedParameters()Set<ContextParameter<?>> SetLoreLootFunction.getAllowedParameters()Set<ContextParameter<?>> SetNameLootFunction.getAllowedParameters()Set<ContextParameter<?>> SetOminousBottleAmplifierLootFunction.getAllowedParameters()Set<ContextParameter<?>> SetStewEffectLootFunction.getAllowedParameters()Methods in net.minecraft.loot.function with parameters of type ContextParameterModifier and TypeMethodDescriptionCopyComponentsLootFunction.blockEntity(ContextParameter<? extends BlockEntity> parameter) CopyComponentsLootFunction.entity(ContextParameter<? extends Entity> parameter) Constructors in net.minecraft.loot.function with parameters of type ContextParameterModifierConstructorDescription(package private)BlockEntityComponentsSource(ContextParameter<? extends BlockEntity> contextParameter) (package private)EntityComponentsSource(ContextParameter<? extends Entity> contextParameter) (package private)ItemStackComponentsSource(ContextParameter<? extends ItemStack> contextParameter) NameSource(ContextParameter<?> contextParameter) -
Uses of ContextParameter in net.minecraft.loot.operator
Methods in net.minecraft.loot.operator that return types with arguments of type ContextParameterModifier and TypeMethodDescriptionSet<ContextParameter<?>> BoundedIntUnaryOperator.getRequiredParameters() -
Uses of ContextParameter in net.minecraft.loot.provider.nbt
Fields in net.minecraft.loot.provider.nbt declared as ContextParameterModifier and TypeFieldDescriptionprivate final ContextParameter<? extends BlockEntity> ContextLootNbtProvider.BlockEntityTarget.contextParamThe field for thecontextParamrecord component.private final ContextParameter<? extends Entity> ContextLootNbtProvider.EntityTarget.contextParamThe field for thecontextParamrecord component.Methods in net.minecraft.loot.provider.nbt that return ContextParameterModifier and TypeMethodDescriptionContextParameter<? extends BlockEntity> ContextLootNbtProvider.BlockEntityTarget.contextParam()Returns the value of thecontextParamrecord component.ContextParameter<? extends Entity> ContextLootNbtProvider.EntityTarget.contextParam()Returns the value of thecontextParamrecord component.ContextParameter<? extends T> ContextLootNbtProvider.Target.contextParam()Methods in net.minecraft.loot.provider.nbt that return types with arguments of type ContextParameterModifier and TypeMethodDescriptionSet<ContextParameter<?>> ContextLootNbtProvider.getRequiredParameters()Set<ContextParameter<?>> LootNbtProvider.getRequiredParameters()Set<ContextParameter<?>> StorageLootNbtProvider.getRequiredParameters()Constructors in net.minecraft.loot.provider.nbt with parameters of type ContextParameterModifierConstructorDescription(package private)BlockEntityTarget(ContextParameter<? extends BlockEntity> contextParameter) (package private)EntityTarget(ContextParameter<? extends Entity> contextParameter) -
Uses of ContextParameter in net.minecraft.loot.provider.number
Methods in net.minecraft.loot.provider.number that return types with arguments of type ContextParameterModifier and TypeMethodDescriptionSet<ContextParameter<?>> BinomialLootNumberProvider.getAllowedParameters()Set<ContextParameter<?>> ScoreLootNumberProvider.getAllowedParameters()Set<ContextParameter<?>> UniformLootNumberProvider.getAllowedParameters() -
Uses of ContextParameter in net.minecraft.loot.provider.score
Methods in net.minecraft.loot.provider.score that return types with arguments of type ContextParameterModifier and TypeMethodDescriptionSet<ContextParameter<?>> ContextLootScoreProvider.getRequiredParameters()Set<ContextParameter<?>> FixedLootScoreProvider.getRequiredParameters()Set<ContextParameter<?>> LootScoreProvider.getRequiredParameters() -
Uses of ContextParameter in net.minecraft.recipe.display
Fields in net.minecraft.recipe.display declared as ContextParameterModifier and TypeFieldDescriptionstatic final ContextParameter<FuelRegistry> SlotDisplayContexts.FUEL_REGISTRYstatic final ContextParameter<RegistryWrapper.WrapperLookup> SlotDisplayContexts.REGISTRIES -
Uses of ContextParameter in net.minecraft.util.context
Fields in net.minecraft.util.context with type parameters of type ContextParameterModifier and TypeFieldDescriptionprivate final Set<ContextParameter<?>> ContextType.allowedprivate final Set<ContextParameter<?>> ContextType.Builder.allowedprivate final Map<ContextParameter<?>, Object> ContextParameterMap.Builder.mapprivate final Map<ContextParameter<?>, Object> ContextParameterMap.mapprivate final Set<ContextParameter<?>> ContextType.Builder.requiredprivate final Set<ContextParameter<?>> ContextType.requiredMethods in net.minecraft.util.context that return ContextParameterMethods in net.minecraft.util.context that return types with arguments of type ContextParameterModifier and TypeMethodDescriptionSet<ContextParameter<?>> ContextType.getAllowed()Set<ContextParameter<?>> ContextType.getRequired()Methods in net.minecraft.util.context with parameters of type ContextParameterModifier and TypeMethodDescriptionContextParameterMap.Builder.add(ContextParameter<T> parameter, T value) ContextParameterMap.Builder.addNullable(ContextParameter<T> parameter, T value) ContextType.Builder.allow(ContextParameter<?> parameter) booleanContextParameterMap.contains(ContextParameter<?> parameter) <T> TContextParameterMap.Builder.getNullable(ContextParameter<T> parameter) <T> TContextParameterMap.getNullable(ContextParameter<T> parameter) <T> TContextParameterMap.getOrDefault(ContextParameter<T> parameter, T defaultValue) <T> TContextParameterMap.Builder.getOrThrow(ContextParameter<T> parameter) <T> TContextParameterMap.getOrThrow(ContextParameter<T> parameter) ContextType.Builder.require(ContextParameter<?> parameter) Constructor parameters in net.minecraft.util.context with type arguments of type ContextParameterModifierConstructorDescription(package private)ContextParameterMap(Map<ContextParameter<?>, Object> map) (package private)ContextType(Set<ContextParameter<?>> required, Set<ContextParameter<?>> allowed)