Hitbox.java
package com.hypixel.hytale.protocol;
import com.hypixel.hytale.protocol.io.ValidationResult;
import io.netty.buffer.ByteBuf;
import java.util.Objects;
import javax.annotation.Nonnull;
public class Hitbox {
public static final int NULLABLE_BIT_FIELD_SIZE = 0;
public static final int FIXED_BLOCK_SIZE = 24;
public static final int VARIABLE_FIELD_COUNT = 0;
public static final int VARIABLE_BLOCK_START = 24;
public static final int MAX_SIZE = 24;
public float minX;
public minY;
minZ;
maxX;
maxY;
maxZ;
{
}
{
.minX = minX;
.minY = minY;
.minZ = minZ;
.maxX = maxX;
.maxY = maxY;
.maxZ = maxZ;
}
{
.minX = other.minX;
.minY = other.minY;
.minZ = other.minZ;
.maxX = other.maxX;
.maxY = other.maxY;
.maxZ = other.maxZ;
}
Hitbox {
();
obj.minX = buf.getFloatLE(offset + );
obj.minY = buf.getFloatLE(offset + );
obj.minZ = buf.getFloatLE(offset + );
obj.maxX = buf.getFloatLE(offset + );
obj.maxY = buf.getFloatLE(offset + );
obj.maxZ = buf.getFloatLE(offset + );
obj;
}
{
;
}
{
buf.writeFloatLE(.minX);
buf.writeFloatLE(.minY);
buf.writeFloatLE(.minZ);
buf.writeFloatLE(.maxX);
buf.writeFloatLE(.maxY);
buf.writeFloatLE(.maxZ);
}
{
;
}
ValidationResult {
buffer.readableBytes() - offset < ? ValidationResult.error() : ValidationResult.OK;
}
Hitbox {
();
copy.minX = .minX;
copy.minY = .minY;
copy.minZ = .minZ;
copy.maxX = .maxX;
copy.maxY = .maxY;
copy.maxZ = .maxZ;
copy;
}
{
( == obj) {
;
} (!(obj Hitbox)) {
;
} {
(Hitbox)obj;
.minX == other.minX && .minY == other.minY && .minZ == other.minZ && .maxX == other.maxX && .maxY == other.maxY && .maxZ == other.maxZ;
}
}
{
Objects.hash( []{.minX, .minY, .minZ, .maxX, .maxY, .maxZ});
}
}