public class ExplorationMapLootFunction extends ConditionalLootFunction
Modifier and Type | Class and Description |
---|---|
static class |
ExplorationMapLootFunction.Builder |
static class |
ExplorationMapLootFunction.Serializer |
ConditionalLootFunction.Joiner
Modifier and Type | Field and Description |
---|---|
private MapIcon.Type |
decoration |
static MapIcon.Type |
DEFAULT_DECORATION |
private StructureFeature<?> |
destination |
static StructureFeature<?> |
field_25032 |
private static Logger |
LOGGER |
private int |
searchRadius |
private boolean |
skipExistingChunks |
private byte |
zoom |
conditions
Modifier | Constructor and Description |
---|---|
private |
ExplorationMapLootFunction(LootCondition[] conditions,
StructureFeature<?> structureFeature,
MapIcon.Type decoration,
byte zoom,
int searchRadius,
boolean skipExistingChunks) |
Modifier and Type | Method and Description |
---|---|
static ExplorationMapLootFunction.Builder |
create() |
Set<LootContextParameter<?>> |
getRequiredParameters() |
LootFunctionType |
getType() |
ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
andThen
private static final Logger LOGGER
public static final StructureFeature<?> field_25032
public static final MapIcon.Type DEFAULT_DECORATION
private final StructureFeature<?> destination
private final MapIcon.Type decoration
private final byte zoom
private final int searchRadius
private final boolean skipExistingChunks
private ExplorationMapLootFunction(LootCondition[] conditions, StructureFeature<?> structureFeature, MapIcon.Type decoration, byte zoom, int searchRadius, boolean skipExistingChunks)
public LootFunctionType getType()
public Set<LootContextParameter<?>> getRequiredParameters()
public ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction
public static ExplorationMapLootFunction.Builder create()