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 int
freeTickets
private BlockPos
pos
private PointOfInterestType
type
private Runnable
updateListener
-
Constructor Summary
Constructors Modifier Constructor Description private
PointOfInterest(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)
boolean
equals(Object obj)
BlockPos
getPos()
PointOfInterestType
getType()
int
hashCode()
boolean
hasSpace()
boolean
isOccupied()
protected boolean
releaseTicket()
protected boolean
reserveTicket()
-
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()
-