Normalized code formatting.
This commit is contained in:
parent
b1db7c5152
commit
134b11f177
122 changed files with 944 additions and 697 deletions
|
@ -31,7 +31,8 @@ public class ChunkPairSerializable implements Serializable
|
|||
return new BlockPos((chunkXPos << 4) + 8, y, (chunkZPos << 4) + 8);
|
||||
}
|
||||
|
||||
public BlockPos getChunkCenter(){
|
||||
public BlockPos getChunkCenter()
|
||||
{
|
||||
return getChunkCenter(64);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ public class PortalLocation implements Serializable
|
|||
private int z;
|
||||
@Getter
|
||||
private int dimension;
|
||||
|
||||
|
||||
public PortalLocation(int x, int y, int z, int dimension)
|
||||
{
|
||||
this.x = x;
|
||||
|
@ -64,13 +64,17 @@ public class PortalLocation implements Serializable
|
|||
@Override
|
||||
public boolean equals(Object o)
|
||||
{
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
if (this == o)
|
||||
return true;
|
||||
if (o == null || getClass() != o.getClass())
|
||||
return false;
|
||||
|
||||
PortalLocation that = (PortalLocation) o;
|
||||
|
||||
if (x != that.x) return false;
|
||||
if (y != that.y) return false;
|
||||
if (x != that.x)
|
||||
return false;
|
||||
if (y != that.y)
|
||||
return false;
|
||||
return z == that.z;
|
||||
|
||||
}
|
||||
|
|
|
@ -33,6 +33,6 @@ public class TeleporterBloodMagic extends Teleporter
|
|||
@Override
|
||||
public void placeInPortal(Entity entity, float rotationYaw)
|
||||
{
|
||||
entity.setLocationAndAngles(MathHelper.floor_double(entity.posX), MathHelper.floor_double(entity.posY) + 2, MathHelper.floor_double(entity.posZ), entity.rotationYaw, entity.rotationPitch);
|
||||
entity.setLocationAndAngles(MathHelper.floor_double(entity.posX), MathHelper.floor_double(entity.posY) + 2, MathHelper.floor_double(entity.posZ), entity.rotationYaw, entity.rotationPitch);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue