Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
Implement BlockEntity sectionX/Z methods
Dieser Commit ist enthalten in:
Ursprung
c565f2c9c7
Commit
9ffa737a4d
@ -27,12 +27,12 @@ import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
public interface BlockEntity {
|
||||
|
||||
default byte relX() {
|
||||
return -1; //TODO
|
||||
default byte sectionX() {
|
||||
return (byte) ((packedXZ() >> 4) & 15);
|
||||
}
|
||||
|
||||
default byte relZ() {
|
||||
return -1; //TODO
|
||||
default byte sectionZ() {
|
||||
return (byte) (packedXZ() & 15);
|
||||
}
|
||||
|
||||
byte packedXZ();
|
||||
|
@ -50,4 +50,8 @@ public final class BlockEntityIds {
|
||||
}
|
||||
return newId;
|
||||
}
|
||||
|
||||
public static int[] getIds() {
|
||||
return IDS;
|
||||
}
|
||||
}
|
||||
|
@ -144,7 +144,6 @@ public final class WorldPackets {
|
||||
}
|
||||
|
||||
// Fill biome palette
|
||||
//TODO Use single value palette if given the possibility
|
||||
final DataPaletteImpl biomePalette = new DataPaletteImpl();
|
||||
section.addPalette(PaletteType.BIOMES, biomePalette);
|
||||
for (int biomeIndex = i * BIOMES_PER_CHUNK; biomeIndex < (i * BIOMES_PER_CHUNK) + BIOMES_PER_CHUNK; biomeIndex++) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren