public class PointOfInterest extends java.lang.Object implements IDynamicSerializable
Modifier and Type | Field and Description |
---|---|
private int |
freeTickets |
private java.lang.Runnable |
onChange |
private BlockPos |
pos |
private PointOfInterestType |
type |
Modifier | Constructor and Description |
---|---|
private |
PointOfInterest(BlockPos posIn,
PointOfInterestType typeIn,
int freeTicketsIn,
java.lang.Runnable onChangeIn) |
|
PointOfInterest(BlockPos posIn,
PointOfInterestType typeIn,
java.lang.Runnable onChangeIn) |
|
PointOfInterest(com.mojang.datafixers.Dynamic<T> p_i50297_1_,
java.lang.Runnable onChangeIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
claim() |
boolean |
equals(java.lang.Object p_equals_1_) |
BlockPos |
getPos() |
PointOfInterestType |
getType() |
int |
hashCode() |
boolean |
hasSpace() |
boolean |
isOccupied() |
protected boolean |
release() |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_) |
private final BlockPos pos
private final PointOfInterestType type
private int freeTickets
private final java.lang.Runnable onChange
private PointOfInterest(BlockPos posIn, PointOfInterestType typeIn, int freeTicketsIn, java.lang.Runnable onChangeIn)
public PointOfInterest(BlockPos posIn, PointOfInterestType typeIn, java.lang.Runnable onChangeIn)
public PointOfInterest(com.mojang.datafixers.Dynamic<T> p_i50297_1_, java.lang.Runnable onChangeIn)
public <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_)
serialize
in interface IDynamicSerializable
protected boolean claim()
protected boolean release()
public boolean hasSpace()
public boolean isOccupied()
public BlockPos getPos()
public PointOfInterestType getType()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object