public class PointOfInterest extends Object
Modifier and Type | Field and Description |
---|---|
private int |
freeTickets |
private BlockPos |
pos |
private PointOfInterestType |
type |
private Runnable |
updateListener |
Modifier | Constructor and Description |
---|---|
private |
PointOfInterest(BlockPos pos,
PointOfInterestType type,
int freeTickets,
Runnable updateListener) |
|
PointOfInterest(BlockPos pos,
PointOfInterestType type,
Runnable updateListener) |
Modifier and Type | Method and Description |
---|---|
static com.mojang.serialization.Codec<PointOfInterest> |
createCodec(Runnable updateListener) |
boolean |
equals(Object obj) |
BlockPos |
getPos() |
PointOfInterestType |
getType() |
int |
hashCode() |
boolean |
hasSpace() |
boolean |
isOccupied() |
protected boolean |
releaseTicket() |
protected boolean |
reserveTicket() |
private final BlockPos pos
private final PointOfInterestType type
private int freeTickets
private final Runnable updateListener
private PointOfInterest(BlockPos pos, PointOfInterestType type, int freeTickets, Runnable updateListener)
public PointOfInterest(BlockPos pos, PointOfInterestType type, Runnable updateListener)
public static com.mojang.serialization.Codec<PointOfInterest> createCodec(Runnable updateListener)
protected boolean reserveTicket()
protected boolean releaseTicket()
public boolean hasSpace()
public boolean isOccupied()
public BlockPos getPos()
public PointOfInterestType getType()