Package net.minecraft.village
Class PointOfInterest
- java.lang.Object
-
- net.minecraft.village.PointOfInterest
-
public class PointOfInterest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
freeTickets
private PointOfInterestType
poiType
private BlockPos
pos
private java.lang.Runnable
setDirty
-
Constructor Summary
Constructors Modifier Constructor Description private
PointOfInterest(BlockPos p_i50295_1_, PointOfInterestType p_i50295_2_, int p_i50295_3_, java.lang.Runnable p_i50295_4_)
PointOfInterest(BlockPos p_i50296_1_, PointOfInterestType p_i50296_2_, java.lang.Runnable p_i50296_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
acquireTicket()
static com.mojang.serialization.Codec<PointOfInterest>
codec(java.lang.Runnable p_234150_0_)
boolean
equals(java.lang.Object p_equals_1_)
PointOfInterestType
getPoiType()
BlockPos
getPos()
int
hashCode()
boolean
hasSpace()
boolean
isOccupied()
protected boolean
releaseTicket()
-
-
-
Field Detail
-
pos
private final BlockPos pos
-
poiType
private final PointOfInterestType poiType
-
freeTickets
private int freeTickets
-
setDirty
private final java.lang.Runnable setDirty
-
-
Constructor Detail
-
PointOfInterest
private PointOfInterest(BlockPos p_i50295_1_, PointOfInterestType p_i50295_2_, int p_i50295_3_, java.lang.Runnable p_i50295_4_)
-
PointOfInterest
public PointOfInterest(BlockPos p_i50296_1_, PointOfInterestType p_i50296_2_, java.lang.Runnable p_i50296_3_)
-
-
Method Detail
-
codec
public static com.mojang.serialization.Codec<PointOfInterest> codec(java.lang.Runnable p_234150_0_)
-
acquireTicket
protected boolean acquireTicket()
-
releaseTicket
protected boolean releaseTicket()
-
hasSpace
public boolean hasSpace()
-
isOccupied
public boolean isOccupied()
-
getPos
public BlockPos getPos()
-
getPoiType
public PointOfInterestType getPoiType()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-