public class PointOfInterest extends Object implements DynamicSerializable
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) |
|
PointOfInterest(com.mojang.datafixers.Dynamic<T> dynamic,
Runnable updateListener) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
BlockPos |
getPos() |
PointOfInterestType |
getType() |
int |
hashCode() |
boolean |
hasSpace() |
boolean |
isOccupied() |
protected boolean |
releaseTicket() |
protected boolean |
reserveTicket() |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
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 PointOfInterest(com.mojang.datafixers.Dynamic<T> dynamic, Runnable updateListener)
public <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface DynamicSerializable
protected boolean reserveTicket()
protected boolean releaseTicket()
public boolean hasSpace()
public boolean isOccupied()
public BlockPos getPos()
public PointOfInterestType getType()