public class VillageDoorInfo
extends java.lang.Object
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() |
BlockPos |
getInsideBlockPos() |
EnumFacing |
getInsideDirection() |
int |
getInsideOffsetX() |
int |
getInsideOffsetZ() |
int |
getInsidePosY() |
boolean |
getIsDetachedFromVillageFlag() |
void |
incrementDoorOpeningRestrictionCounter() |
boolean |
isInsideSide(BlockPos pos) |
void |
resetDoorOpeningRestrictionCounter() |
void |
setIsDetachedFromVillageFlag(boolean detached) |
void |
setLastActivityTimestamp(int timestamp) |
public VillageDoorInfo(BlockPos pos, int deltaX, int deltaZ, int timestamp)
public VillageDoorInfo(BlockPos pos, EnumFacing facing, int timestamp)
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 getInsidePosY()
public void setLastActivityTimestamp(int timestamp)
public boolean getIsDetachedFromVillageFlag()
public void setIsDetachedFromVillageFlag(boolean detached)
public EnumFacing getInsideDirection()