@@ -152,38 +152,8 @@ index f10ea89e64aac2c11ed442ac7f2ffd15b793ac76..5df72f16e6b954ecee23a6f8daa29de0
152
152
153
153
private static final int MIN_PROTOCOL_ID = -1;
154
154
private static final int MAX_PROTOCOL_ID = 2;
155
- diff --git a/src/main/java/net/minecraft/network/protocol/game/ClientboundLoginPacket.java b/src/main/java/net/minecraft/network/protocol/game/ClientboundLoginPacket.java
156
- index 2a6969baca7c07c52223672de58886dd05c032eb..a620e53021e02da1663b8d8b68d429b22814567f 100644
157
- --- a/src/main/java/net/minecraft/network/protocol/game/ClientboundLoginPacket.java
158
- +++ b/src/main/java/net/minecraft/network/protocol/game/ClientboundLoginPacket.java
159
- @@ -20,25 +20,6 @@ public record ClientboundLoginPacket(int playerId, boolean hardcore, GameType ga
160
- }), buf.readWithCodec(RegistryAccess.NETWORK_CODEC).freeze(), buf.readWithCodec(DimensionType.CODEC), ResourceKey.create(Registry.DIMENSION_REGISTRY, buf.readResourceLocation()), buf.readLong(), buf.readVarInt(), buf.readVarInt(), buf.readVarInt(), buf.readBoolean(), buf.readBoolean(), buf.readBoolean(), buf.readBoolean());
161
- }
162
-
163
- - public ClientboundLoginPacket(int playerEntityId, boolean bl, GameType previousGameMode, @Nullable GameType gameType, Set<ResourceKey<Level>> set, RegistryAccess.Frozen frozen, Holder<DimensionType> holder, ResourceKey<Level> resourceKey, long l, int maxPlayers, int chunkLoadDistance, int i, boolean bl2, boolean bl3, boolean bl4, boolean bl5) {
164
- - this.playerId = playerEntityId;
165
- - this.hardcore = bl;
166
- - this.gameType = previousGameMode;
167
- - this.previousGameType = gameType;
168
- - this.levels = set;
169
- - this.registryHolder = frozen;
170
- - this.dimensionType = holder;
171
- - this.dimension = resourceKey;
172
- - this.seed = l;
173
- - this.maxPlayers = maxPlayers;
174
- - this.chunkRadius = chunkLoadDistance;
175
- - this.simulationDistance = i;
176
- - this.reducedDebugInfo = bl2;
177
- - this.showDeathScreen = bl3;
178
- - this.isDebug = bl4;
179
- - this.isFlat = bl5;
180
- - }
181
- -
182
- @Override
183
- public void write(FriendlyByteBuf buf) {
184
- buf.writeInt(this.playerId);
185
155
diff --git a/src/main/java/net/minecraft/resources/RegistryLoader.java b/src/main/java/net/minecraft/resources/RegistryLoader.java
186
- index 858037070db0b0fed07bf542294b76028f0018f9..75f72b568ee2b27c5042da688b62d4e3c5732e09 100644
156
+ index bb2f21e10bad59186f6408b5d6f49ee8375e6870..0d28a3a7f52174e70e044957b37361043b153e42 100644
187
157
--- a/src/main/java/net/minecraft/resources/RegistryLoader.java
188
158
+++ b/src/main/java/net/minecraft/resources/RegistryLoader.java
189
159
@@ -73,7 +73,7 @@ public class RegistryLoader {
@@ -195,17 +165,6 @@ index 858037070db0b0fed07bf542294b76028f0018f9..75f72b568ee2b27c5042da688b62d4e3
195
165
return new RegistryLoader.ReadCache();
196
166
});
197
167
}
198
- @@ -83,10 +83,6 @@ public class RegistryLoader {
199
- }
200
-
201
- public static record Bound(RegistryAccess.Writable access, RegistryLoader loader) {
202
- - public Bound(RegistryAccess.Writable writable, RegistryLoader registryLoader) {
203
- - this.access = writable;
204
- - this.loader = registryLoader;
205
- - }
206
-
207
- public <E> DataResult<? extends Registry<E>> overrideRegistryFromResources(ResourceKey<? extends Registry<E>> registryRef, Codec<E> codec, DynamicOps<JsonElement> ops) {
208
- WritableRegistry<E> writableRegistry = this.access.ownedWritableRegistryOrThrow(registryRef);
209
168
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
210
169
index ef128de5fe17231b39edb12a7014291d03cf79ec..868f6799a0e406401eecf18bc939fbdf88f534a2 100644
211
170
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -285,7 +244,7 @@ index 92650d816113a0f1c2b589691895ebba3424d661..7ef0075cc16613709e145714204a728d
285
244
this.byName = Maps.newHashMap(builder.build()); // CraftBukkit
286
245
RecipeManager.LOGGER.info("Loaded {} recipes", map1.size());
287
246
diff --git a/src/main/java/net/minecraft/world/level/chunk/PalettedContainer.java b/src/main/java/net/minecraft/world/level/chunk/PalettedContainer.java
288
- index 57bc78e1a189386443abb02744e88b2fdf803a95..ef093604f001d3e899679f6d308780856f076193 100644
247
+ index 675625a5dda3ededa398da5e25c2c850ba4ef59a..438647aa32e91e35b5a6430961d1ce4d5558d3d4 100644
289
248
--- a/src/main/java/net/minecraft/world/level/chunk/PalettedContainer.java
290
249
+++ b/src/main/java/net/minecraft/world/level/chunk/PalettedContainer.java
291
250
@@ -42,7 +42,7 @@ public class PalettedContainer<T> implements PaletteResize<T> {
@@ -297,28 +256,6 @@ index 57bc78e1a189386443abb02744e88b2fdf803a95..ef093604f001d3e899679f6d30878085
297
256
return instance.group(entryCodec.mapResult(ExtraCodecs.orElsePartial(object)).listOf().fieldOf("palette").forGetter(PalettedContainer.DiscData::paletteEntries), Codec.LONG_STREAM.optionalFieldOf("data").forGetter(PalettedContainer.DiscData::storage)).apply(instance, PalettedContainer.DiscData::new);
298
257
}).comapFlatMap((serialized) -> {
299
258
return read(idList, provider, serialized);
300
- @@ -278,10 +278,6 @@ public class PalettedContainer<T> implements PaletteResize<T> {
301
- }
302
-
303
- static record Configuration<T>(Palette.Factory factory, int bits) {
304
- - Configuration(Palette.Factory factory, int i) {
305
- - this.factory = factory;
306
- - this.bits = i;
307
- - }
308
-
309
- public PalettedContainer.Data<T> createData(IdMap<T> idList, PaletteResize<T> listener, int size) {
310
- BitStorage bitStorage = (BitStorage)(this.bits == 0 ? new ZeroBitStorage(size) : new SimpleBitStorage(this.bits, size));
311
- @@ -316,10 +312,6 @@ public class PalettedContainer<T> implements PaletteResize<T> {
312
- }
313
-
314
- static record DiscData<T>(List<T> paletteEntries, Optional<LongStream> storage) {
315
- - DiscData(List<T> list, Optional<LongStream> optional) {
316
- - this.paletteEntries = list;
317
- - this.storage = optional;
318
- - }
319
- }
320
-
321
- public abstract static class Strategy {
322
259
diff --git a/src/main/java/net/minecraft/world/level/entity/EntityLookup.java b/src/main/java/net/minecraft/world/level/entity/EntityLookup.java
323
260
index 3864da01056970ae05cc3ca094f923178b4ffc97..e6b9f812e521abd552e0c7dc0429d5a62f2bfc35 100644
324
261
--- a/src/main/java/net/minecraft/world/level/entity/EntityLookup.java
0 commit comments