Package net.minecraft.world.poi
Class PointOfInterest
java.lang.Object
net.minecraft.world.poi.PointOfInterest
public class PointOfInterest extends Object
-
Field Summary
Fields Modifier and Type Field Description private intfreeTicketsprivate BlockPosposprivate PointOfInterestTypetypeprivate RunnableupdateListener -
Constructor Summary
Constructors Modifier Constructor Description privatePointOfInterest(BlockPos pos, PointOfInterestType type, int freeTickets, Runnable updateListener)PointOfInterest(BlockPos pos, PointOfInterestType type, Runnable updateListener) -
Method Summary
Modifier and Type Method Description static com.mojang.serialization.Codec<PointOfInterest>createCodec(Runnable updateListener)booleanequals(Object obj)BlockPosgetPos()PointOfInterestTypegetType()inthashCode()booleanhasSpace()booleanisOccupied()protected booleanreleaseTicket()protected booleanreserveTicket()
-
Field Details
-
pos
-
type
-
freeTickets
private int freeTickets -
updateListener
-
-
Constructor Details
-
PointOfInterest
private PointOfInterest(BlockPos pos, PointOfInterestType type, int freeTickets, Runnable updateListener) -
PointOfInterest
-
-
Method Details
-
createCodec
-
reserveTicket
protected boolean reserveTicket() -
releaseTicket
protected boolean releaseTicket() -
hasSpace
public boolean hasSpace() -
isOccupied
public boolean isOccupied() -
getPos
-
getType
-
equals
-
hashCode
public int hashCode()
-