Package net.minecraft.village
Class PointOfInterestData
- java.lang.Object
-
- net.minecraft.village.PointOfInterestData
-
public class PointOfInterestData extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<PointOfInterestType,java.util.Set<PointOfInterest>>
byType
private boolean
isValid
private static org.apache.logging.log4j.Logger
LOGGER
private it.unimi.dsi.fastutil.shorts.Short2ObjectMap<PointOfInterest>
records
private java.lang.Runnable
setDirty
-
Constructor Summary
Constructors Modifier Constructor Description PointOfInterestData(java.lang.Runnable p_i50293_1_)
private
PointOfInterestData(java.lang.Runnable p_i231555_1_, boolean p_i231555_2_, java.util.List<PointOfInterest> p_i231555_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(BlockPos p_218243_1_, PointOfInterestType p_218243_2_)
private boolean
add(PointOfInterest p_218254_1_)
private void
clear()
static com.mojang.serialization.Codec<PointOfInterestData>
codec(java.lang.Runnable p_234158_0_)
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_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
records
private final it.unimi.dsi.fastutil.shorts.Short2ObjectMap<PointOfInterest> records
-
byType
private final java.util.Map<PointOfInterestType,java.util.Set<PointOfInterest>> byType
-
setDirty
private final java.lang.Runnable setDirty
-
isValid
private boolean isValid
-
-
Constructor Detail
-
PointOfInterestData
public PointOfInterestData(java.lang.Runnable p_i50293_1_)
-
PointOfInterestData
private PointOfInterestData(java.lang.Runnable p_i231555_1_, boolean p_i231555_2_, java.util.List<PointOfInterest> p_i231555_3_)
-
-
Method Detail
-
codec
public static com.mojang.serialization.Codec<PointOfInterestData> codec(java.lang.Runnable p_234158_0_)
-
getRecords
public java.util.stream.Stream<PointOfInterest> getRecords(java.util.function.Predicate<PointOfInterestType> p_218247_1_, PointOfInterestManager.Status p_218247_2_)
-
add
public void add(BlockPos p_218243_1_, PointOfInterestType p_218243_2_)
-
add
private boolean add(PointOfInterest p_218254_1_)
-
remove
public void remove(BlockPos p_218248_1_)
-
release
public boolean release(BlockPos p_218251_1_)
-
exists
public boolean exists(BlockPos p_218245_1_, java.util.function.Predicate<PointOfInterestType> p_218245_2_)
-
getType
public java.util.Optional<PointOfInterestType> getType(BlockPos p_218244_1_)
-
refresh
public void refresh(java.util.function.Consumer<java.util.function.BiConsumer<BlockPos,PointOfInterestType>> p_218240_1_)
-
clear
private void clear()
-
isValid
boolean isValid()
-
-