Package net.minecraft.loot.functions
Class ExplorationMap
- java.lang.Object
-
- net.minecraft.loot.LootFunction
-
- net.minecraft.loot.functions.ExplorationMap
-
- All Implemented Interfaces:
java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
,ILootFunction
,IParameterized
public class ExplorationMap extends LootFunction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExplorationMap.Builder
static class
ExplorationMap.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static MapDecoration.Type
DEFAULT_DECORATION
static Structure<?>
DEFAULT_FEATURE
private Structure<?>
destination
private static org.apache.logging.log4j.Logger
LOGGER
private MapDecoration.Type
mapDecoration
private int
searchRadius
private boolean
skipKnownStructures
private byte
zoom
-
Fields inherited from class net.minecraft.loot.LootFunction
predicates
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ExplorationMap(ILootCondition[] p_i232169_1_, Structure<?> p_i232169_2_, MapDecoration.Type p_i232169_3_, byte p_i232169_4_, int p_i232169_5_, boolean p_i232169_6_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<LootParameter<?>>
getReferencedContextParams()
LootFunctionType
getType()
static ExplorationMap.Builder
makeExplorationMap()
ItemStack
run(ItemStack p_215859_1_, LootContext p_215859_2_)
-
Methods inherited from class net.minecraft.loot.LootFunction
apply, simpleBuilder, validate
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
DEFAULT_FEATURE
public static final Structure<?> DEFAULT_FEATURE
-
DEFAULT_DECORATION
public static final MapDecoration.Type DEFAULT_DECORATION
-
destination
private final Structure<?> destination
-
mapDecoration
private final MapDecoration.Type mapDecoration
-
zoom
private final byte zoom
-
searchRadius
private final int searchRadius
-
skipKnownStructures
private final boolean skipKnownStructures
-
-
Constructor Detail
-
ExplorationMap
private ExplorationMap(ILootCondition[] p_i232169_1_, Structure<?> p_i232169_2_, MapDecoration.Type p_i232169_3_, byte p_i232169_4_, int p_i232169_5_, boolean p_i232169_6_)
-
-
Method Detail
-
getType
public LootFunctionType getType()
-
getReferencedContextParams
public java.util.Set<LootParameter<?>> getReferencedContextParams()
-
run
public ItemStack run(ItemStack p_215859_1_, LootContext p_215859_2_)
- Specified by:
run
in classLootFunction
-
makeExplorationMap
public static ExplorationMap.Builder makeExplorationMap()
-
-