public class PointOfInterestData extends java.lang.Object implements IDynamicSerializable
Modifier and Type | Field and Description |
---|---|
private java.util.Map<PointOfInterestType,java.util.Set<PointOfInterest>> |
byType |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.lang.Runnable |
onChange |
private it.unimi.dsi.fastutil.shorts.Short2ObjectMap<PointOfInterest> |
records |
private boolean |
valid |
Constructor and Description |
---|
PointOfInterestData(java.lang.Runnable onChangeIn) |
PointOfInterestData(java.lang.Runnable onChangeIn,
com.mojang.datafixers.Dynamic<T> p_i50294_2_) |
Modifier and Type | Method and Description |
---|---|
void |
add(BlockPos p_218243_1_,
PointOfInterestType p_218243_2_) |
private boolean |
add(PointOfInterest p_218254_1_) |
private void |
clear() |
boolean |
exists(BlockPos p_218245_1_,
java.util.function.Predicate<PointOfInterestType> p_218245_2_) |
java.util.stream.Stream<PointOfInterest> |
getRecords(java.util.function.Predicate<PointOfInterestType> p_218247_1_,
PointOfInterestManager.Status p_218247_2_) |
java.util.Optional<PointOfInterestType> |
getType(BlockPos p_218244_1_) |
(package private) boolean |
isValid() |
void |
refresh(java.util.function.Consumer<java.util.function.BiConsumer<BlockPos,PointOfInterestType>> p_218240_1_) |
boolean |
release(BlockPos p_218251_1_) |
void |
remove(BlockPos p_218248_1_) |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_) |
private static final org.apache.logging.log4j.Logger LOGGER
private final it.unimi.dsi.fastutil.shorts.Short2ObjectMap<PointOfInterest> records
private final java.util.Map<PointOfInterestType,java.util.Set<PointOfInterest>> byType
private final java.lang.Runnable onChange
private boolean valid
public PointOfInterestData(java.lang.Runnable onChangeIn)
public PointOfInterestData(java.lang.Runnable onChangeIn, com.mojang.datafixers.Dynamic<T> p_i50294_2_)
public java.util.stream.Stream<PointOfInterest> getRecords(java.util.function.Predicate<PointOfInterestType> p_218247_1_, PointOfInterestManager.Status p_218247_2_)
public void add(BlockPos p_218243_1_, PointOfInterestType p_218243_2_)
private boolean add(PointOfInterest p_218254_1_)
public void remove(BlockPos p_218248_1_)
public boolean release(BlockPos p_218251_1_)
public boolean exists(BlockPos p_218245_1_, java.util.function.Predicate<PointOfInterestType> p_218245_2_)
public java.util.Optional<PointOfInterestType> getType(BlockPos p_218244_1_)
public <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_)
serialize
in interface IDynamicSerializable
public void refresh(java.util.function.Consumer<java.util.function.BiConsumer<BlockPos,PointOfInterestType>> p_218240_1_)
private void clear()
boolean isValid()