Uses of Interface
net.minecraft.world.level.storage.loot.Validatable
Packages that use Validatable
Package
Description
-
Uses of Validatable in net.minecraft.advancements.criterion
Classes in net.minecraft.advancements.criterion that implement Validatable -
Uses of Validatable in net.minecraft.server
Methods in net.minecraft.server with type parameters of type ValidatableModifier and TypeMethodDescriptionprivate static <T extends Validatable>
CompletableFuture<WritableRegistry<?>> ReloadableServerRegistries.scheduleRegistryLoad(LootDataType<T> type, RegistryOps<JsonElement> ops, ResourceManager manager, Executor taskExecutor) private static <T extends Validatable>
voidReloadableServerRegistries.validateRegistry(ValidationContextSource contextSource, LootDataType<T> type, HolderLookup.Provider registries) -
Uses of Validatable in net.minecraft.world.item.enchantment
Classes in net.minecraft.world.item.enchantment that implement ValidatableModifier and TypeClassDescriptionfinal recordfinal recordMethods in net.minecraft.world.item.enchantment with type parameters of type ValidatableModifier and TypeMethodDescriptionprivate static <T extends Validatable>
com.mojang.serialization.Codec<List<T>> EnchantmentEffectComponents.validatedListCodec(com.mojang.serialization.Codec<T> elementCodec, ContextKeySet paramSet) -
Uses of Validatable in net.minecraft.world.item.slot
Subinterfaces of Validatable in net.minecraft.world.item.slotClasses in net.minecraft.world.item.slot that implement ValidatableModifier and TypeClassDescriptionclassclassfinal recordclassclassclassclassclass -
Uses of Validatable in net.minecraft.world.item.trading
Classes in net.minecraft.world.item.trading that implement Validatable -
Uses of Validatable in net.minecraft.world.level.storage.loot
Classes in net.minecraft.world.level.storage.loot with type parameters of type ValidatableModifier and TypeClassDescriptionstatic final recordLootContext.VisitedEntry<T extends Validatable>final recordLootDataType<T extends Validatable>Subinterfaces of Validatable in net.minecraft.world.level.storage.lootModifier and TypeInterfaceDescriptioninterfaceAn object that will use some parameters from a LootContext.Classes in net.minecraft.world.level.storage.loot that implement ValidatableModifier and TypeClassDescriptionclassA possibly unbounded range of integers based onLootContext.classclassFields in net.minecraft.world.level.storage.loot declared as ValidatableModifier and TypeFieldDescriptionprivate final @Nullable TLootDataType.defaultValueThe field for thedefaultValuerecord component.private final TLootContext.VisitedEntry.valueThe field for thevaluerecord component.Methods in net.minecraft.world.level.storage.loot with type parameters of type ValidatableModifier and TypeMethodDescriptionstatic <T extends Validatable>
Function<List<T>, com.mojang.serialization.DataResult<List<T>>> Validatable.listValidatorForContext(ContextKeySet params) static <T extends Validatable>
voidValidatable.validateReference(ValidationContext context, ResourceKey<T> id) static <T extends Validatable>
Function<T, com.mojang.serialization.DataResult<T>> Validatable.validatorForContext(ContextKeySet params) Methods in net.minecraft.world.level.storage.loot with parameters of type ValidatableModifier and TypeMethodDescriptionstatic voidValidatable.validate(ValidationContext context, String name, Validatable v) Method parameters in net.minecraft.world.level.storage.loot with type arguments of type ValidatableModifier and TypeMethodDescriptionstatic voidValidatable.validate(ValidationContext context, String name, List<? extends Validatable> list) static voidValidatable.validate(ValidationContext context, String name, Optional<? extends Validatable> optional) static voidValidatable.validate(ValidationContext context, List<? extends Validatable> list) -
Uses of Validatable in net.minecraft.world.level.storage.loot.entries
Classes in net.minecraft.world.level.storage.loot.entries that implement ValidatableModifier and TypeClassDescriptionclassA composite loot pool entry container that expands all its children in order until one of them succeeds.classBase class for loot pool entry containers that delegate to one or more children.classA loot pool entry container that will generate the dynamic drops with a given name.classA loot pool entry that does not generate any items.classA composite loot pool entry container that expands all its children in order.classA loot pool entry that always generates a given item.classBase class for loot pool entry containers.classA LootPoolEntryContainer that expands into a single LootPoolEntry.classclassA composite loot pool entry container that expands all its children in order until one of them fails.classclassA loot pool entry container that generates based on an item tag. -
Uses of Validatable in net.minecraft.world.level.storage.loot.functions
Subinterfaces of Validatable in net.minecraft.world.level.storage.loot.functionsModifier and TypeInterfaceDescriptioninterfaceA LootItemFunction modifies an ItemStack based on the current LootContext.Classes in net.minecraft.world.level.storage.loot.functions that implement ValidatableModifier and TypeClassDescriptionclassLootItemFunction that modifies the stack's count based on an enchantment level on the tool using various formulas.classLootItemFunction that reduces a stack's count based on the explosion radius.classLootItemFunction that copies a set of block state properties to the"BlockStateTag"NBT tag of the ItemStack.classclassclassLootItemFunction that sets the stack's name by copying it from somewhere else, such as the killing player.classclassclassLootItemFunction that applies a random enchantment to the stack.classApplies a random enchantment to the stack.classConvert any empty maps into explorer maps that lead to a structure that is nearest to the current, if present.invalid reference
LootContextParams.ORIGIN
classLootItemFunction that applies the"SkullOwner"NBT tag to any player heads based on the givenLootContext.EntityTarget.classclassclassA LootItemFunction that limits the stack's count to fall within a givenIntRange.classA LootItemFunction that only modifies the stacks if a list of predicates passes.classclassclassLootItemFunction that adds a list of attribute modifiers to the stacks.private static final recordclassLootItemFunction that sets the banner patterns for a banner item.classclassclassLootItemFunction that sets the contents of a container such as a chest by setting theBlocKEntityTagof the stacks.classLootItemFunction that sets the LootTable and optionally the loot table seed on the stack'sBlockEntityTag.classclassclassLootItemFunction that sets a stack's enchantments.classclassclassclassLootItemFunction that sets the stack's count based on aNumberProvider, optionally adding to any existing count.classLootItemFunction that sets the stack's damage based on aNumberProvider, optionally adding to any existing damage.classclassLootItemFunction that sets a stack's lore tag, optionally replacing any previously present lore.classLootItemFunction that sets a stack's name.classclassclassclassclassLootItemFunction that adds an effect to any suspicious stew items.private static final recordclassclassclassLootItemFunction that tries to smelt any items using.invalid reference
RecipeType.SMELTINGclass -
Uses of Validatable in net.minecraft.world.level.storage.loot.predicates
Subinterfaces of Validatable in net.minecraft.world.level.storage.loot.predicatesClasses in net.minecraft.world.level.storage.loot.predicates that implement ValidatableModifier and TypeClassDescriptionclassclassfinal recordA LootItemCondition that provides a random chance based on the level of a certain enchantment on the tool.classfinal recordA LootItemCondition that refers to another LootItemCondition by its ID.final recordA LootItemCondition which checksLootContextParams.ORIGINandLootContextParams.DAMAGE_SOURCEagainst aDamageSourcePredicate.final recordfinal recordA LootItemCondition that checks if an Entity selected by aLootContext.EntityTargethas a given set of scores.classA LootItemCondition that checks whether an item should survive from an explosion or not.final recordA LootItemCondition that inverts the output of another one.final recordLootItemCondition that checks theposition against ainvalid reference
LootContextParams.ORIGINLocationPredicateafter applying an offset to the origin position.final recordA LootItemCondition that checks whether the block state matches a given Block andStatePropertiesPredicate.final recordA LootItemCondition that checks a givenEntityPredicateagainst a givenLootContext.EntityTarget.classA LootItemCondition that matches if the last damage to an entity was done by a player.final recordA LootItemCondition that succeeds with a given probability.final recordfinal recordA LootItemCondition that checks the tool against anItemPredicate.final recordA LootItemCondition that checks theagainst aninvalid reference
day time
IntRangeafter applying an optional modulo division.final recordLootItemCondition that checks if a number provided by aNumberProvideris within anIntRange.final recordA LootItemCondition that checks whether it currently raining or thundering. -
Uses of Validatable in net.minecraft.world.level.storage.loot.providers.nbt
Subinterfaces of Validatable in net.minecraft.world.level.storage.loot.providers.nbtModifier and TypeInterfaceDescriptioninterfaceA provider for NBT data based on a LootContext.Classes in net.minecraft.world.level.storage.loot.providers.nbt that implement ValidatableModifier and TypeClassDescriptionclassA NbtProvider that provides either the's NBT data or an entity's NBT data based on aninvalid reference
block entity
LootContext.EntityTarget.final recordAn NbtProvider that provides NBT data from a named.invalid reference
CommandStorage -
Uses of Validatable in net.minecraft.world.level.storage.loot.providers.number
Subinterfaces of Validatable in net.minecraft.world.level.storage.loot.providers.numberClasses in net.minecraft.world.level.storage.loot.providers.number that implement ValidatableModifier and TypeClassDescriptionfinal recordA number provider which generates a random number based on a binomial distribution.final recordANumberProviderthat provides a constant value.final recordfinal recordProvides a number by reading the score of a scoreboard member whose name is provided by aScoreboardNameProvider.final recordfinal recordfinal recordGenerates a random number which is uniformly distributed between a minimum and a maximum. -
Uses of Validatable in net.minecraft.world.level.storage.loot.providers.score
Subinterfaces of Validatable in net.minecraft.world.level.storage.loot.providers.scoreModifier and TypeInterfaceDescriptioninterfaceProvides a scoreboard name based on aLootContext.Classes in net.minecraft.world.level.storage.loot.providers.score that implement ValidatableModifier and TypeClassDescriptionfinal recordAScoreboardNameProviderthat provides the scoreboard name for an entity selected by aLootContext.EntityTarget.final recordAScoreboardNameProviderthat always provides a fixed name. -
Uses of Validatable in net.neoforged.neoforge.common.loot
Classes in net.neoforged.neoforge.common.loot that implement ValidatableModifier and TypeClassDescriptionclassThis LootItemCondition "neoforge:can_item_perform_ability" can be used to check if an item can perform a given ItemAbility.class