Class ExplorationMapFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.ExplorationMapFunction
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootItemFunction
,LootContextUser
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ExplorationMapFunction> static final Holder
<MapDecorationType> static final int
static final boolean
static final byte
private final Holder
<MapDecorationType> private final int
private final boolean
private final byte
Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
Constructor Summary
ConstructorDescriptionExplorationMapFunction
(List<LootItemCondition> p_300426_, TagKey<Structure> p_210653_, Holder<MapDecorationType> p_335648_, byte p_210655_, int p_210656_, boolean p_210657_) -
Method Summary
Modifier and TypeMethodDescriptionSet
<LootContextParam<?>> getType()
run
(ItemStack p_80547_, LootContext p_80548_) 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
-
Field Details
-
DEFAULT_DESTINATION
-
DEFAULT_DECORATION
-
DEFAULT_ZOOM
public static final byte DEFAULT_ZOOM- See Also:
-
DEFAULT_SEARCH_RADIUS
public static final int DEFAULT_SEARCH_RADIUS- See Also:
-
DEFAULT_SKIP_EXISTING
public static final boolean DEFAULT_SKIP_EXISTING- See Also:
-
CODEC
-
destination
-
mapDecoration
-
zoom
private final byte zoom -
searchRadius
private final int searchRadius -
skipKnownStructures
private final boolean skipKnownStructures
-
-
Constructor Details
-
ExplorationMapFunction
ExplorationMapFunction(List<LootItemCondition> p_300426_, TagKey<Structure> p_210653_, Holder<MapDecorationType> p_335648_, byte p_210655_, int p_210656_, boolean p_210657_)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootItemFunction
- Specified by:
getType
in classLootItemConditionalFunction
-
getReferencedContextParams
-
run
- Specified by:
run
in classLootItemConditionalFunction
-
makeExplorationMap
-