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 classExplorationMap.Builderstatic classExplorationMap.Serializer-
Nested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static MapDecoration.TypeDEFAULT_DECORATIONstatic Structure<?>DEFAULT_FEATUREprivate Structure<?>destinationprivate static org.apache.logging.log4j.LoggerLOGGERprivate MapDecoration.TypemapDecorationprivate intsearchRadiusprivate booleanskipKnownStructuresprivate bytezoom-
Fields inherited from class net.minecraft.loot.LootFunction
predicates
-
-
Constructor Summary
Constructors Modifier Constructor Description privateExplorationMap(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()LootFunctionTypegetType()static ExplorationMap.BuildermakeExplorationMap()ItemStackrun(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:
runin classLootFunction
-
makeExplorationMap
public static ExplorationMap.Builder makeExplorationMap()
-
-