Package net.minecraft.world.poi
Class PointOfInterestSet
java.lang.Object
net.minecraft.world.poi.PointOfInterestSet
public class PointOfInterestSet extends Object
-
Field Summary
Fields Modifier and Type Field Description private static Logger
LOGGER
private Short2ObjectMap<PointOfInterest>
pointsOfInterestByPos
private Map<PointOfInterestType,Set<PointOfInterest>>
pointsOfInterestByType
private Runnable
updateListener
private boolean
valid
-
Constructor Summary
Constructors Modifier Constructor Description PointOfInterestSet(Runnable updateListener)
private
PointOfInterestSet(Runnable updateListener, boolean bool, List<PointOfInterest> list)
-
Method Summary
Modifier and Type Method Description void
add(BlockPos pos, PointOfInterestType type)
private boolean
add(PointOfInterest poi)
private void
clear()
static com.mojang.serialization.Codec<PointOfInterestSet>
createCodec(Runnable updateListener)
Stream<PointOfInterest>
get(Predicate<PointOfInterestType> predicate, PointOfInterestStorage.OccupationStatus occupationStatus)
Optional<PointOfInterestType>
getType(BlockPos pos)
(package private) boolean
isValid()
boolean
releaseTicket(BlockPos pos)
void
remove(BlockPos pos)
boolean
test(BlockPos pos, Predicate<PointOfInterestType> predicate)
void
updatePointsOfInterest(Consumer<BiConsumer<BlockPos,PointOfInterestType>> consumer)
-
Field Details
-
LOGGER
-
pointsOfInterestByPos
-
pointsOfInterestByType
-
updateListener
-
valid
private boolean valid
-
-
Constructor Details
-
PointOfInterestSet
-
PointOfInterestSet
-
-
Method Details
-
createCodec
public static com.mojang.serialization.Codec<PointOfInterestSet> createCodec(Runnable updateListener) -
get
public Stream<PointOfInterest> get(Predicate<PointOfInterestType> predicate, PointOfInterestStorage.OccupationStatus occupationStatus) -
add
-
add
-
remove
-
releaseTicket
-
test
-
getType
-
updatePointsOfInterest
-
clear
private void clear() -
isValid
boolean isValid()
-