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.Codec<ExplorationMapFunction>
static final MapDecoration.Type
static final int
static final boolean
static final byte
private final MapDecoration.Type
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_, MapDecoration.Type p_210654_, 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_, MapDecoration.Type p_210654_, byte p_210655_, int p_210656_, boolean p_210657_)
-
-
Method Details
-
getType
-
getReferencedContextParams
-
run
- Specified by:
run
in classLootItemConditionalFunction
-
makeExplorationMap
-