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
Modifier and TypeClassDescription(package private) static final record
(package private) static interface
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.Builder<T extends LootItemConditionalFunction.Builder<T>>, LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier 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
ModifierConstructorDescriptionprivate
ToggleTooltips
(List<LootItemCondition> p_330048_, Map<ToggleTooltips.ComponentToggle<?>, Boolean> p_332012_) -
Method Summary
Modifier and TypeMethodDescriptiongetType()
protected ItemStack
run
(ItemStack p_334443_, LootContext p_331872_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
apply, commonFields, simpleBuilder, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
Methods 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:
run
in classLootItemConditionalFunction
-
getType
- Specified by:
getType
in interfaceLootItemFunction
- Specified by:
getType
in classLootItemConditionalFunction
-