Interface PoiType
Represents a point of interest (POI).
Many PoiTypes act as a marker vs storing occupants examples of this are most
explicitly PoiTypes.NETHER_PORTAL. This state can be checked using the method
hasOccupants() which will return true if the PoiType can have occupants.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDetermines the type of occupancy the point of interest has. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether this PoiType can actually hold occupants.booleanDetermines whether the provided BlockState is relevant to this point of interest.
-
Method Details
-
is
Determines whether the provided BlockState is relevant to this point of interest.- Parameters:
data- the BlockData to check- Returns:
trueif the BlockState is relevant, otherwisefalse
-
hasOccupants
boolean hasOccupants()Determines whether this PoiType can actually hold occupants.- Returns:
trueif this PoiType can hold occupants
-