Package net.minecraft.village
Class PointOfInterestData
java.lang.Object
net.minecraft.village.PointOfInterestData
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<PointOfInterestType,
Set<PointOfInterest>> private boolean
private static final org.apache.logging.log4j.Logger
private final it.unimi.dsi.fastutil.shorts.Short2ObjectMap<PointOfInterest>
private final Runnable
-
Constructor Summary
ModifierConstructorDescriptionPointOfInterestData
(Runnable p_i50293_1_) private
PointOfInterestData
(Runnable p_i231555_1_, boolean p_i231555_2_, List<PointOfInterest> p_i231555_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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>
boolean
exists
(BlockPos p_218245_1_, Predicate<PointOfInterestType> p_218245_2_) getRecords
(Predicate<PointOfInterestType> p_218247_1_, PointOfInterestManager.Status p_218247_2_) (package private) boolean
isValid()
void
refresh
(Consumer<BiConsumer<BlockPos, PointOfInterestType>> p_218240_1_) boolean
void
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
records
-
byType
-
setDirty
-
isValid
private boolean isValid
-
-
Constructor Details
-
PointOfInterestData
-
PointOfInterestData
private PointOfInterestData(Runnable p_i231555_1_, boolean p_i231555_2_, List<PointOfInterest> p_i231555_3_)
-
-
Method Details
-
codec
-
getRecords
public Stream<PointOfInterest> getRecords(Predicate<PointOfInterestType> p_218247_1_, PointOfInterestManager.Status p_218247_2_) -
add
-
add
-
remove
-
release
-
exists
-
getType
-
refresh
-
clear
private void clear() -
isValid
boolean isValid()
-