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 LoggerLOGGERprivate Short2ObjectMap<PointOfInterest>pointsOfInterestByPosprivate Map<PointOfInterestType,Set<PointOfInterest>>pointsOfInterestByTypeprivate RunnableupdateListenerprivate booleanvalid -
Constructor Summary
Constructors Modifier Constructor Description PointOfInterestSet(Runnable updateListener)privatePointOfInterestSet(Runnable updateListener, boolean bool, List<PointOfInterest> list) -
Method Summary
Modifier and Type Method Description voidadd(BlockPos pos, PointOfInterestType type)private booleanadd(PointOfInterest poi)private voidclear()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) booleanisValid()booleanreleaseTicket(BlockPos pos)voidremove(BlockPos pos)booleantest(BlockPos pos, Predicate<PointOfInterestType> predicate)voidupdatePointsOfInterest(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()
-