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
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier and TypeFieldDescriptionstatic MapDecoration.Type
static String
static StructureFeature<?>
static int
static boolean
static byte
(package private) StructureFeature<?>
(package private) static org.apache.logging.log4j.Logger
(package private) MapDecoration.Type
(package private) int
(package private) boolean
(package private) byte
Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
Constructor Summary
ConstructorDescriptionExplorationMapFunction(LootItemCondition[] p_80531_, StructureFeature<?> p_80532_, MapDecoration.Type p_80533_, byte p_80534_, int p_80535_, boolean p_80536_)
-
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, 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
-
LOGGER
static final org.apache.logging.log4j.Logger LOGGER -
DEFAULT_FEATURE
-
DEFAULT_DECORATION_NAME
- See Also:
- Constant Field Values
-
DEFAULT_DECORATION
-
DEFAULT_ZOOM
public static final byte DEFAULT_ZOOM- See Also:
- Constant Field Values
-
DEFAULT_SEARCH_RADIUS
public static final int DEFAULT_SEARCH_RADIUS- See Also:
- Constant Field Values
-
DEFAULT_SKIP_EXISTING
public static final boolean DEFAULT_SKIP_EXISTING- See Also:
- Constant Field Values
-
destination
-
mapDecoration
-
zoom
final byte zoom -
searchRadius
final int searchRadius -
skipKnownStructures
final boolean skipKnownStructures
-
-
Constructor Details
-
ExplorationMapFunction
ExplorationMapFunction(LootItemCondition[] p_80531_, StructureFeature<?> p_80532_, MapDecoration.Type p_80533_, byte p_80534_, int p_80535_, boolean p_80536_)
-
-
Method Details
-
getType
-
getReferencedContextParams
-
run
- Specified by:
run
in classLootItemConditionalFunction
-
makeExplorationMap
-