Package com.li64.tide.data
Class TideLootItem
java.lang.Object
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
com.li64.tide.data.TideLootItem
public class TideLootItem
extends net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer.Builder<T extends net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer.Builder<T>>, net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer.EntryBase, net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer.EntryConstructor, net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer.Serializer<T extends net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.storage.loot.entries.ComposableEntryContainerstatic final net.minecraft.world.level.storage.loot.entries.ComposableEntryContainerFields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
DEFAULT_QUALITY, DEFAULT_WEIGHT, functions, quality, weightFields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
conditions -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTideLootItem(net.minecraft.world.item.Item item, int weight, int quality, net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] lootItemConditions, net.minecraft.world.level.storage.loot.functions.LootItemFunction[] lootItemFunctions) -
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.world.level.storage.loot.entries.ComposableEntryContainerand(net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer arg0) protected voidcreateItemStack(Consumer<net.minecraft.world.item.ItemStack> consumer, net.minecraft.world.level.storage.loot.LootContext lootContext) static net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>entry(net.minecraft.world.level.ItemLike item) net.minecraft.world.level.storage.loot.entries.LootPoolEntryTypegetType()default net.minecraft.world.level.storage.loot.entries.ComposableEntryContaineror(net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer arg0) Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
expand, simpleBuilder, validateMethods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
canRun
-
Field Details
-
ALWAYS_FALSE
static final net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer ALWAYS_FALSE -
ALWAYS_TRUE
static final net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer ALWAYS_TRUE
-
-
Constructor Details
-
TideLootItem
protected TideLootItem(net.minecraft.world.item.Item item, int weight, int quality, net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] lootItemConditions, net.minecraft.world.level.storage.loot.functions.LootItemFunction[] lootItemFunctions)
-
-
Method Details
-
entry
public static net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?> entry(net.minecraft.world.level.ItemLike item) -
createItemStack
protected void createItemStack(Consumer<net.minecraft.world.item.ItemStack> consumer, net.minecraft.world.level.storage.loot.LootContext lootContext) - Specified by:
createItemStackin classnet.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
-
getType
public net.minecraft.world.level.storage.loot.entries.LootPoolEntryType getType()- Specified by:
getTypein classnet.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
-
and
default net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer and(net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer arg0) -
or
default net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer or(net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer arg0)
-