Interface PoiType

All Superinterfaces:
Keyed, Keyed

@NullMarked public interface PoiType extends Keyed
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 Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Determines the type of occupancy the point of interest has.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines whether this PoiType can actually hold occupants.
    boolean
    is(BlockData data)
    Determines whether the provided BlockState is relevant to this point of interest.

    Methods inherited from interface Keyed

    getKey, key
  • Method Details

    • is

      boolean is(BlockData data)
      Determines whether the provided BlockState is relevant to this point of interest.
      Parameters:
      data - the BlockData to check
      Returns:
      true if the BlockState is relevant, otherwise false
    • hasOccupants

      boolean hasOccupants()
      Determines whether this PoiType can actually hold occupants.
      Returns:
      true if this PoiType can hold occupants