Class ToggleTooltips
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.ToggleTooltips
- All Implemented Interfaces:
BiFunction<ItemStack,,LootContext, ItemStack> LootItemFunction,LootContextUser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record(package private) static interfaceNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.Builder<T extends LootItemConditionalFunction.Builder<T>>, LootItemConditionalFunction.DummyBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ToggleTooltips> private static final com.mojang.serialization.Codec<ToggleTooltips.ComponentToggle<?>> private static final Map<DataComponentType<?>, ToggleTooltips.ComponentToggle<?>> private final Map<ToggleTooltips.ComponentToggle<?>, Boolean> Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateToggleTooltips(List<LootItemCondition> p_330048_, Map<ToggleTooltips.ComponentToggle<?>, Boolean> p_332012_) -
Method Summary
Modifier and TypeMethodDescriptiongetType()protected ItemStackrun(ItemStack p_334443_, LootContext p_331872_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
apply, commonFields, simpleBuilder, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams
-
Field Details
-
TOGGLES
-
TOGGLE_CODEC
-
CODEC
-
values
-
-
Constructor Details
-
ToggleTooltips
private ToggleTooltips(List<LootItemCondition> p_330048_, Map<ToggleTooltips.ComponentToggle<?>, Boolean> p_332012_)
-
-
Method Details
-
run
- Specified by:
runin classLootItemConditionalFunction
-
getType
- Specified by:
getTypein interfaceLootItemFunction- Specified by:
getTypein classLootItemConditionalFunction
-