Java 26.4 Pre-Release 1 transcription review
Research note, 2026-12-03. Question: of the 182 @javaSource members whose bytecode 26.4 Pre-Release 1 changed against 26.3, which changes does the server's copy have to follow, and which leave the copy as it is? The plan calls this slice 3, tracked in #4090. The values are as they were on this date.
Summary
| Verdict | Members | What happened to the row |
|---|---|---|
| Equal after the reviewed equivalences | 71 | Restamped |
| Read and found unchanged for the copy | 82 | Restamped |
| Changed, and the copy now follows each release | 2 | Gated, then restamped |
| Changed in code the server does not copy | 6 | Restamped; the new behavior is #4114 |
| Moved to another member, unchanged | 7 | Restamped as a move |
| Java client protocol and Java client sounds | 14 | Still deferred, for #4092 |
Most of the 26.4 bytecode change is Mojang refactoring: block sound types became a data-driven registry, fluids gained data-driven properties, Mth.clamp became Math.clamp, Guava factories became constructors, and helpers were extracted. Two copied behaviors changed:
- A small mushroom stands on any block whose top face holds a center, in any light (
MushroomBlock.canSurvive,SINCE_MUSHROOM_CENTER_SUPPORTin@jsprismarine/block-behaviors). - The ender dragon adds a tenth of its clamped climb to its vertical speed each tick, where 26.3 added a hundredth (
EnderDragon.aiStep,SINCE_DRAGON_TENTH_CLIMBin@jsprismarine/entity-goals).
Mth.sin and Mth.cos, gated in slice 2, are the third.
How the review was done
Each member's normalized listing came from java:sources --list against both jars. A script rewrote both listings with these equivalences, each checked once against the jars, and compared them, renumbering local slots and branch labels by first use:
Mth.clampandMath.clamp, and thei2lthat widens the valueMath.clamp(JII)Itakes.FluidState.is(Fluid)andisSourceOfType(Fluid), which agree for a source fluid; every call site passesFluids.WATER.ByteBufCodecs.idMapperoverByIdMap.continuousandenumCodec, the same VarInt ids.invokevirtualandinvokeinterfaceof one method, a field's declared type, andRegistryFriendlyByteBufforFriendlyByteBuf.playSoundwith explicit1.0F, 1.0Fand the overload that passes them.- Guava's
Lists,MapsandSetsfactories and the constructors they call. UseOnContext.getClickedFluidStateandgetLevel().getFluidState(getClickedPos()).- Anonymous classes renumbered, since the fingerprint never covers their bodies.
Every other member was read by hand: its diff, the bytecode of each new callee, and the TypeScript that copies it.
A member 26.4 moved, to a superclass or another descriptor, cannot be stamped under its 26.3 spelling for both releases, because the golden maps a spelling to one member. The golden now holds moves per release, which java:sources --update --moved <spelling>=<target> records and the java.transcriptions family reads; a member whose descriptor changed is recorded the same way.
Changed, gated
| Member | What changed |
|---|---|
EnderDragon.aiStep | EnderDragon.aiStep adds 0.1 of the clamped climb where 26.3 added 0.01; SINCE_DRAGON_TENTH_CLIMB |
MushroomBlock.canSurvive | MushroomBlock.canSurvive: canSupportCenter(below, UP), no light rule; SINCE_MUSHROOM_CENTER_SUPPORT |
Changed in code the server does not copy
| Member | What changed |
|---|---|
Entity.checkInsideBlocks(Lnet/minecraft/world/phys/Vec3;Lnet/minecraft/world/phys/Vec3;Lnet/minecraft/world/entity/InsideBlockEffectApplier$StepBasedCollector;Lit/unimi/dsi/fastutil/longs/LongSet;I)I | the copy is the 1.0E-6 deflation, unchanged. New in 26.4, not copied: a #fall_damage_resetting block resets the fall only when the movement clips its inside shape |
LivingEntity.aiStep | LivingEntity.aiStep: liquid jumping goes through getFluidsToJumpIn, the same water and lava rules; without the freezing effect, freezing and its damage are unchanged. New in 26.4, not copied: the freezing effect freezes outside powder snow and makes a fully frozen body take 1.5 damage; the frost slowdown now applies in the air, which the copy models in neither release |
LivingEntity.applyItemBlocking | LivingEntity.applyItemBlocking returns Optional; the angle and resolve are unchanged. New in 26.4, not copied: a 0-damage blow from a weapon in #knocks_back_players_even_with_zero_damage counts as blocked |
LivingEntity.canBeAffected | canBeAffected adds immunity to 26.4's freezing effect, which the server does not have; the other immunities are reordered, unchanged |
LivingEntity.hurtServer | LivingEntity.hurtServer: setLastDamageSource and the Optional block amount are refactors. New in 26.4, not copied: a silent entity plays no secondary thorns hurt sound |
Player.hurtServer | Player.hurtServer: the copy is the difficulty scaling, unchanged. New in 26.4, not copied: a 0-damage blow from a weapon in #knocks_back_players_even_with_zero_damage still lands |
Moved
| Member | What changed |
|---|---|
AmethystClusterBlock.getStateForPlacement | AmethystClusterBlock.getStateForPlacement moved unchanged to AbstractCrystalClusterBlock |
BiomeManager.getBiome(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/core/Holder; | BiomeManager.getBiome(BlockPos) is gone; getBiome(int, int, int), which it called, runs the same zoom with the fiddle steps extracted into prepareFiddleSeed and nextFiddleSeed |
BiomeResolver.getBiomesWithin | getBiomesWithin moved unchanged to NoiseBiomeResolver |
ChunkGenerator.lambda$createStructures$0 | ChunkGenerator.lambda$createStructures$0 is now a filter; the weighted pick moved unchanged to StructureSet.tryGenerateStartInChunk |
SculkCatalystBlock.spawnAfterBreak | spawnAfterBreak moved unchanged to DropExperienceEntityBlock |
SculkSensorBlock.spawnAfterBreak | spawnAfterBreak moved unchanged to DropExperienceEntityBlock |
SculkShriekerBlock.spawnAfterBreak | spawnAfterBreak moved unchanged to DropExperienceEntityBlock |
Java client protocol and sounds
The server speaks 26.3's Java protocol to every Java client, so these copies are right for what it serves. They change when the server accepts 26.4 clients or 26.4 becomes the newest release.
| Member | What changed |
|---|---|
BlockItem.place | place sounds come from the data-driven block sound set and may be absent |
ClientIntentionPacket.STREAM_CODEC | ClientIntentionPacket reads a host of up to 1024 characters, where 26.3 read 255 |
ClientboundCommandsPacket.STREAM_CODEC | ClientboundCommandsPacket gains a raw codec mapped over a registry-aware buffer |
ClientboundCommandsPacket.readNode | ClientboundCommandsPacket reads nodes through per-stub stream codecs |
ClientboundHelloPacket.STREAM_CODEC | ClientboundHelloPacket is gone; 26.4 rewrote login encryption |
ClientboundLoginCompressionPacket.STREAM_CODEC | ClientboundLoginCompressionPacket is gone; 26.4 rewrote the login sequence |
ClientboundLoginFinishedPacket.STREAM_CODEC | ClientboundLoginFinishedPacket adds a connection-options flag field |
ClientboundTransferPacket.STREAM_CODEC | ClientboundTransferPacket adds a string map after host and port |
Consumable.STREAM_CODEC | Consumable.STREAM_CODEC makes the sound optional on the wire |
Entity.playStepSound | step sounds come from the data-driven block sound set and may be absent |
Equippable.STREAM_CODEC | Equippable.STREAM_CODEC makes the equip and shearing sounds optional on the wire |
LivingEntity.playBlockFallSound | fall sounds come from the data-driven block sound set and may be absent |
ServerboundCustomPayloadPacket.STREAM_CODEC | ServerboundCustomPayloadPacket registers ModListPayload |
ServerboundKeyPacket.STREAM_CODEC | ServerboundKeyPacket sends an X25519 public key and 32 bytes in place of two byte arrays |
Read and found unchanged
| Member | What changed |
|---|---|
AbstractArrow.tick | addBubbleParticles left the server tick; it added client particles, which a server level ignores |
AbstractHorse.handleEating | health < max and heal -> canHealNaturally and healNaturally, the same test and clamped add |
AbstractHurtingProjectile.tick | the bubble particles moved to addBubbleParticles; they are client particles |
AmethystBlock.onProjectileHit | the chime moved to AmethystSoundUtils.onProjectileHit, the same code |
BiomeSource.findBiomeHorizontal(IIIIILjava/util/function/Predicate;Lnet/minecraft/util/RandomSource;ZLnet/minecraft/world/level/levelgen/RandomState;)Lcom/mojang/datafixers/util/Pair; | BiomeResolver renamed NoiseBiomeResolver |
BiomeTags.WATER_ON_MAP_OUTLINES | BiomeTags.<clinit> adds is_cave, generated_in_below_zero_retrogen and spawns_cold_variants_underground |
BlockTags.DOORS | BlockTags.<clinit> adds tags; DOORS is unchanged |
Blocks.SNOW | Blocks.<clinit> names block sound sets by key; snow's own definition is unchanged |
BlocksAttacks.resolveBlockedDamage | returns Optional.empty in place of 0 when nothing is blocked; the copy's caller already treats only a positive block as one |
BubbleColumnBlock.getFluidState | getSource() is getSource(false): FALLING defaults false |
BubbleColumnBlock.updateColumn(Lnet/minecraft/world/level/block/Block;Lnet/minecraft/world/level/LevelAccessor;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/block/state/BlockState;)V | the occupy test moved to LiquidBlock.shouldBubbleColumnOccupy; a source always holds amount 8 |
ByteBufCodecs.holderSet | anonymous codec class renumbered $34 -> $36 |
CelebrateVillagersSurvivedRaid.tick | the firework tint moved to FireworkExplosion.DEFAULT_COLOR_TINTS, the same 16 colors DyeColor carried |
ChunkGenerator.findNearestMapStructure | StructureStart.isValid check dropped; a missing start is now null, which the null check catches |
ChunkGenerator.getFirstOccupiedHeight | getBaseHeight renamed getFirstFreeHeight |
ChunkGenerator.getNearestGeneratedStructure(Ljava/util/Set;Lnet/minecraft/world/level/LevelReader;Lnet/minecraft/world/level/StructureManager;IIIZJLnet/minecraft/world/level/levelgen/structure/placement/RandomSpreadStructurePlacement;)Lcom/mojang/datafixers/util/Pair; | StructureStart.isValid check dropped; a missing start is now null, which the null check catches |
ChunkMap.getPlayerViewDistance | i2l widening for Math.clamp(JII)I |
ClientboundBlockUpdatePacket.STREAM_CODEC | BLOCK_STATE_REGISTRY_STREAM_CODEC is the idMapper over BLOCK_STATE_REGISTRY |
ClientboundCustomPayloadPacket.CONFIG_STREAM_CODEC | the brand payload is added in a lambda in place of a list literal |
ClientboundLoginPacket.STREAM_CODEC | collection factory newArrayListWithCapacity -> ArrayList::new |
ClientboundTakeItemEntityPacket.STREAM_CODEC | the codec is a composite of the same three VarInts |
ClientboundUpdateAdvancementsPacket.STREAM_CODEC | collection factory newArrayListWithCapacity -> ArrayList::new |
DesertPyramidStructure.afterPlace | ObjectArrayList built from the set rather than set.stream().toList(); the same iteration order |
DyeColor.$VALUES | DyeColor.<clinit> drops the map and firework colors the enum carried, now data; ids and names are unchanged |
DyeColor.BLACK | DyeColor.<clinit> drops the map and firework colors the enum carried, now data; ids and names are unchanged |
EnchantmentMenu.getEnchantmentList | RegistryAccess -> HolderGetter.Provider, Registry.get -> HolderGetter.get |
Entity.checkFallDamage | 26.4 folds water's fall reset and lava's halving into a per-fluid multiplier in updateFallDistanceAndCheckFallDamage (water 0, lava 0.5); the copy resets the fall in water as both releases do, and models lava's halving in neither |
Entity.move | the long-fall raycast that reset the fall on #fall_damage_resetting blocks moved to onInsideBlock, and checkFallDamage to updateFallDistanceAndCheckFallDamage; the copy models neither the raycast nor the reset, and its collision is unchanged |
EquipmentSlot.SADDLE | BY_ID replaced by enumCodec over the class; the same ids |
EquipmentSlot.STREAM_CODEC | BY_ID replaced by enumCodec over the class; the same ids |
FallingBlockEntity.tick | HolderLookup.Provider -> HolderGetter.Provider |
FireworkExplosion$Shape.$VALUES | BY_ID replaced by enumCodec over the class; the same continuous ids, ZERO out of bounds |
FireworkRocketEntity.tick | getDeltaMovement().add -> addDeltaMovement |
FlowingFluid.getSpread | canHoldSpecificFluid passes the FluidState; SimpleWaterloggedBlock.canPlaceLiquid asks isSourceOfType(WATER), as type == WATER did |
FoodData.tick | isHurt/heal -> canHealNaturally/healNaturally: the same health > 0 and below max test, and the same clamped add |
HoneycombItem.tryApplyToSign | playSound takes a Holder<SoundEvent>; volume and pitch default to 1 |
InfestedBlock.spawnAfterBreak | passes one more argument through to Block.spawnAfterBreak; the silverfish logic is unchanged |
IronGolem.doHurtTarget | getDeltaMovement().add -> addDeltaMovement |
ItemCommands.applyModifier | the modifier is validated through a ValidationWrapper before it is applied |
ItemUseAnimation.STREAM_CODEC | BY_ID replaced by enumCodec over the class; the same continuous ids |
LeavesBlock.getOptionalDistanceAt | hasProperty + getValue -> getValueOrElse(null) |
LivingEntity.canFreeze | the armor loop moved to isWearingFreezeImmuneWearables, the same code |
LivingEntity.jumpInLiquid | getDeltaMovement().add -> addDeltaMovement, the same add behind an isFinite check; the fluid argument became a list |
LivingEntity.tick | Lists.newArrayListWithCapacity -> new ArrayList(int) |
Llama.handleEating | health < max and heal -> canHealNaturally and healNaturally, the same test and clamped add |
MerchantOffer.getModifiedCostCount | i2l widening for Math.clamp(JII)I |
MerchantOffer.satisfiedBy | i2l widening for Math.clamp(JII)I |
NetherFossilStructure.findGenerationPoint | the 26.4 NoiseColumn holds AIR and SOLID sentinels: isEmpty above and isSolid below, which in a nether base column of netherrack, lava and air is the old air-above and sturdy-below test |
OceanMonumentStructure.findGenerationPoint | BiomeResolver renamed NoiseBiomeResolver |
OceanRuinPieces.allPositions | Lists.newArrayList -> new ArrayList |
Painting.create | canBePlaced adds noBorderCollision; the server models no world border and the default one (±29999984) never collides where a painting can hang |
PoiTypes.HOME | PoiTypes holds Holders and the keys move to PoiTypeIds; home's definition is unchanged |
PointedDripstoneBlock.canGrow | is(WATER) && isSource() folded into isSourceOfType(WATER) |
PointedDripstoneBlock.getCauldronFillFluidType | filters on FluidInfo.canFillCauldron (a source) in place of WATER or LAVA, which are the source types; flowing water is FLOWING_WATER |
PointedDripstoneBlock.getFluidAboveStalactite | FluidInfo records whether the fluid above is a source, which only canFillCauldron reads |
PointedDripstoneBlock.maybeTransferFluid | the chances come from Fluid.dripstoneTransferProbability, 0.17578125 for water and 0.05859375 for lava as before; a non-source fluid still returns early |
PortalForcer.findClosestPortalPosition | PoiTypes -> PoiTypeIds |
Potions.SWIFTNESS | Potions.<clinit> adds freezing and long_freezing; swiftness is unchanged |
SegmentableBlock.getStateForPlacement | getLevel().getBlockState(getClickedPos()) -> getClickedBlockState() |
ServerChunkCache.tickChunks()V | the debug-world early return is gone; a normal world ticks the same |
ServerLevel.findLightningTargetAround | PoiTypes -> PoiTypeIds |
SetClosestHomeAsWalkTarget.create | PoiTypes -> PoiTypeIds |
ShulkerBullet.tick | getDeltaMovement().add -> addDeltaMovement |
SkeletonTrapGoal.tick | enchantItemFromProvider takes a HolderGetter.Provider |
SleepInBed.checkExtraStartConditions | getValue(OCCUPIED) -> getValueOrElse(OCCUPIED, false) |
SpeleothemBlock.canTipGrow | isTip is no longer private, so it is not inlined; its body is unchanged |
SpeleothemBlock.findTip | isTip is no longer private, so it is not inlined; its body is unchanged |
SpeleothemBlock.grow | asks shouldMergeTips(), which is true for pointed dripstone; isTip is no longer inlined |
SpeleothemBlock.growStalactiteOrStalagmiteIfPossible | picks from getNaturalGrowthDirections(), TIP_DIRECTION's [UP, DOWN], with nextInt(2), which reads the same seed bit nextBoolean did, so DOWN comes on the same draws |
SpeleothemBlock.growStalagmiteBelow | asks shouldMergeTips(), which is true for pointed dripstone; isTip is no longer inlined |
SpeleothemBlock.isUnmergedTipWithDirection | isTip is no longer private, so it is not inlined; its body is unchanged |
SpeleothemBlock.spawnFallingStalactite | isTip is no longer private, so it is not inlined; its body is unchanged |
StructureManager.getStructureAt(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/levelgen/structure/Structure;)Lnet/minecraft/world/level/levelgen/structure/StructureStart; | null in place of INVALID_START; the copy returns a list, so both are "none" |
SulfurCube.knockback | the hit sound left knockback; the push is unchanged |
ThrowableProjectile.tick | the bubble particles moved to addBubbleParticles; they are client particles |
ValidateNearbyPoi.bedIsOccupied | getValue(OCCUPIED) -> getValueOrElse(OCCUPIED, false) |
ValidateNearbyPoi.create | getValue(OCCUPIED) -> getValueOrElse(OCCUPIED, false) |
VillagerGoalPackages.validateBedPoi | getValue(OCCUPIED) -> getValueOrElse(OCCUPIED, false); every bed has the property |
VineBlock.getStateForPlacement | getLevel().getBlockState(getClickedPos()) -> getClickedBlockState() |
Warden$VibrationUser.onReceiveVibration | an instanceof pattern adds a local; the vibration handling is unchanged |
Zombie.DOOR_BREAKING_PREDICATE | Zombie.<clinit> adds DATA_FROSTBITE_CONVERSION_ID; the door predicate is unchanged |
net/minecraft/server/commands/ExecuteCommand.countItems | slot source wrapped in a ValidationWrapper; the count is unchanged |
Equal after the equivalences
AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience, BaseCoralPlantTypeBlock.getStateForPlacement, BaseRailBlock.getStateForPlacement, BigDripleafBlock.getStateForPlacement, Biome.shouldFreeze(Lnet/minecraft/world/level/LevelReader;Lnet/minecraft/core/BlockPos;Z)Z, BlockPos.rotate, BundleItem.overrideOtherStackedOnMe, BundleItem.overrideStackedOnOther, BundleItem.playInsertFailSound, CeilingHangingSignBlock.getStateForPlacement, ChestBlock.getStateForPlacement, ClientboundChangeDifficultyPacket.STREAM_CODEC, ClientboundSetEquipmentPacket.STREAM_CODEC, CombatRules.getDamageAfterMagicAbsorb, CopperGolemStatueBlock.getStateForPlacement, DefaultRedstoneWireEvaluator.updatePowerStrength, DoublePlantBlock.preventDropFromBottomPart, DragonSittingScanningPhase.doServerTick, DriedGhastBlock.getStateForPlacement, DyeItem.tryApplyToSign, EmptyMapItem.use, EnderChestBlock.getStateForPlacement, EnderDragon.findPath, Enderman.teleport(DDD)Z, EyeOfEnder.tick, Fox$DefendTrustedTargetGoal.start, Fox$FoxEatBerriesGoal.onReachedTarget, Fox$FoxEatBerriesGoal.tick, Fox$FoxPounceGoal.tick, FrogspawnBlock.getRandomTadpolePositionOffset, FrogspawnBlock.spawnTadpoles, FrogspawnBlock.tick, GlowInkSacItem.tryApplyToSign, InkSacItem.tryApplyToSign, LadderBlock.getStateForPlacement, LanternBlock.getStateForPlacement, Leashable.tickLeash, LeavesBlock.getStateForPlacement, LightningRodBlock.getStateForPlacement, LivingEntity.computeModifiedFriction, LivingEntity.getVisibilityPercent, LivingEntity.handleOnClimbable, LivingEntity.travel, LootTable.shuffleAndSplitItems, MangrovePropaguleBlock.getStateForPlacement, MapItemSavedData.createFresh, MapItemSavedData.locked()Lnet/minecraft/world/level/saveddata/maps/MapItemSavedData;, MapItemSavedData.scaled, Mth.outFromOrigin(IIII)Ljava/util/stream/IntStream;, OceanRuinPieces.addClusterRuins, OceanRuinPieces.addPieces, PlayTagWithOtherKids.create, Player.aiStep, PlayerList.respawn, PortalForcer.createPortal, PortalShape.getRelativePosition, ServerPlaceRecipe.placeRecipe(Lnet/minecraft/recipebook/ServerPlaceRecipe$CraftingMenuAccess;IILjava/util/List;Ljava/util/List;Lnet/minecraft/world/entity/player/Inventory;Lnet/minecraft/world/item/crafting/RecipeHolder;ZZ)Lnet/minecraft/world/inventory/RecipeBookMenu$PostPlaceAction;, ServerPlaceRecipe.testClearGrid, ServerPlayer.setExperiencePoints, ShelfBlock.getStateForPlacement, SignBlock.useWithoutItem, SpeleothemBlock.createMergedTips, SpeleothemBlock.createSpeleothem, SpeleothemBlock.getStateForPlacement, StandingSignBlock.getStateForPlacement, StructureTemplate.buildInfoList, TntBlock.prime(Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/entity/LivingEntity;Lnet/minecraft/world/item/ItemStack;)Z, TrapDoorBlock.getStateForPlacement, TreeNodePosition.<init>, WallHangingSignBlock.getStateForPlacement, WallSignBlock.getStateForPlacement.
Sources
- The pinned 26.3 and 26.4 Pre-Release 1 server jars, through
java:sources --list. packages/parity/goldens/behavior-gaps.jsonbefore and after, and the review script's output.