public class VillageDoorInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private BlockPos |
doorBlockPos |
private int |
doorOpeningRestrictionCounter |
private BlockPos |
insideBlock |
private EnumFacing |
insideDirection |
private boolean |
isDetachedFromVillageFlag |
private int |
lastActivityTimestamp |
Constructor and Description |
---|
VillageDoorInfo(BlockPos pos,
EnumFacing facing,
int timestamp) |
VillageDoorInfo(BlockPos pos,
int deltaX,
int deltaZ,
int timestamp) |
Modifier and Type | Method and Description |
---|---|
int |
getDistanceSquared(int x,
int y,
int z) |
int |
getDistanceToDoorBlockSq(BlockPos pos) |
int |
getDistanceToInsideBlockSq(BlockPos pos) |
BlockPos |
getDoorBlockPos() |
int |
getDoorOpeningRestrictionCounter() |
private static EnumFacing |
getFaceDirection(int deltaX,
int deltaZ) |
BlockPos |
getInsideBlockPos() |
EnumFacing |
getInsideDirection() |
int |
getInsideOffsetX() |
int |
getInsideOffsetZ() |
boolean |
getIsDetachedFromVillageFlag() |
int |
getLastActivityTimestamp() |
void |
incrementDoorOpeningRestrictionCounter() |
boolean |
isInsideSide(BlockPos pos) |
void |
resetDoorOpeningRestrictionCounter() |
void |
setIsDetachedFromVillageFlag(boolean detached) |
void |
setLastActivityTimestamp(int timestamp) |
private final BlockPos doorBlockPos
private final BlockPos insideBlock
private final EnumFacing insideDirection
private int lastActivityTimestamp
private boolean isDetachedFromVillageFlag
private int doorOpeningRestrictionCounter
public VillageDoorInfo(BlockPos pos, int deltaX, int deltaZ, int timestamp)
public VillageDoorInfo(BlockPos pos, EnumFacing facing, int timestamp)
private static EnumFacing getFaceDirection(int deltaX, int deltaZ)
public int getDistanceSquared(int x, int y, int z)
public int getDistanceToDoorBlockSq(BlockPos pos)
public int getDistanceToInsideBlockSq(BlockPos pos)
public boolean isInsideSide(BlockPos pos)
public void resetDoorOpeningRestrictionCounter()
public void incrementDoorOpeningRestrictionCounter()
public int getDoorOpeningRestrictionCounter()
public BlockPos getDoorBlockPos()
public BlockPos getInsideBlockPos()
public int getInsideOffsetX()
public int getInsideOffsetZ()
public int getLastActivityTimestamp()
public void setLastActivityTimestamp(int timestamp)
public boolean getIsDetachedFromVillageFlag()
public void setIsDetachedFromVillageFlag(boolean detached)
public EnumFacing getInsideDirection()