Skip to content

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 ​

VerdictMembersWhat happened to the row
Equal after the reviewed equivalences71Restamped
Read and found unchanged for the copy82Restamped
Changed, and the copy now follows each release2Gated, then restamped
Changed in code the server does not copy6Restamped; the new behavior is #4114
Moved to another member, unchanged7Restamped as a move
Java client protocol and Java client sounds14Still 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_SUPPORT in @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_CLIMB in @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.clamp and Math.clamp, and the i2l that widens the value Math.clamp(JII)I takes.
  • FluidState.is(Fluid) and isSourceOfType(Fluid), which agree for a source fluid; every call site passes Fluids.WATER.
  • ByteBufCodecs.idMapper over ByIdMap.continuous and enumCodec, the same VarInt ids.
  • invokevirtual and invokeinterface of one method, a field's declared type, and RegistryFriendlyByteBuf for FriendlyByteBuf.
  • playSound with explicit 1.0F, 1.0F and the overload that passes them.
  • Guava's Lists, Maps and Sets factories and the constructors they call.
  • UseOnContext.getClickedFluidState and getLevel().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 ​

MemberWhat changed
EnderDragon.aiStepEnderDragon.aiStep adds 0.1 of the clamped climb where 26.3 added 0.01; SINCE_DRAGON_TENTH_CLIMB
MushroomBlock.canSurviveMushroomBlock.canSurvive: canSupportCenter(below, UP), no light rule; SINCE_MUSHROOM_CENTER_SUPPORT

Changed in code the server does not copy ​

MemberWhat 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)Ithe 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.aiStepLivingEntity.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.applyItemBlockingLivingEntity.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.canBeAffectedcanBeAffected adds immunity to 26.4's freezing effect, which the server does not have; the other immunities are reordered, unchanged
LivingEntity.hurtServerLivingEntity.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.hurtServerPlayer.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 ​

MemberWhat changed
AmethystClusterBlock.getStateForPlacementAmethystClusterBlock.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.getBiomesWithingetBiomesWithin moved unchanged to NoiseBiomeResolver
ChunkGenerator.lambda$createStructures$0ChunkGenerator.lambda$createStructures$0 is now a filter; the weighted pick moved unchanged to StructureSet.tryGenerateStartInChunk
SculkCatalystBlock.spawnAfterBreakspawnAfterBreak moved unchanged to DropExperienceEntityBlock
SculkSensorBlock.spawnAfterBreakspawnAfterBreak moved unchanged to DropExperienceEntityBlock
SculkShriekerBlock.spawnAfterBreakspawnAfterBreak 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.

MemberWhat changed
BlockItem.placeplace sounds come from the data-driven block sound set and may be absent
ClientIntentionPacket.STREAM_CODECClientIntentionPacket reads a host of up to 1024 characters, where 26.3 read 255
ClientboundCommandsPacket.STREAM_CODECClientboundCommandsPacket gains a raw codec mapped over a registry-aware buffer
ClientboundCommandsPacket.readNodeClientboundCommandsPacket reads nodes through per-stub stream codecs
ClientboundHelloPacket.STREAM_CODECClientboundHelloPacket is gone; 26.4 rewrote login encryption
ClientboundLoginCompressionPacket.STREAM_CODECClientboundLoginCompressionPacket is gone; 26.4 rewrote the login sequence
ClientboundLoginFinishedPacket.STREAM_CODECClientboundLoginFinishedPacket adds a connection-options flag field
ClientboundTransferPacket.STREAM_CODECClientboundTransferPacket adds a string map after host and port
Consumable.STREAM_CODECConsumable.STREAM_CODEC makes the sound optional on the wire
Entity.playStepSoundstep sounds come from the data-driven block sound set and may be absent
Equippable.STREAM_CODECEquippable.STREAM_CODEC makes the equip and shearing sounds optional on the wire
LivingEntity.playBlockFallSoundfall sounds come from the data-driven block sound set and may be absent
ServerboundCustomPayloadPacket.STREAM_CODECServerboundCustomPayloadPacket registers ModListPayload
ServerboundKeyPacket.STREAM_CODECServerboundKeyPacket sends an X25519 public key and 32 bytes in place of two byte arrays

Read and found unchanged ​

MemberWhat changed
AbstractArrow.tickaddBubbleParticles left the server tick; it added client particles, which a server level ignores
AbstractHorse.handleEatinghealth < max and heal -> canHealNaturally and healNaturally, the same test and clamped add
AbstractHurtingProjectile.tickthe bubble particles moved to addBubbleParticles; they are client particles
AmethystBlock.onProjectileHitthe 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_OUTLINESBiomeTags.<clinit> adds is_cave, generated_in_below_zero_retrogen and spawns_cold_variants_underground
BlockTags.DOORSBlockTags.<clinit> adds tags; DOORS is unchanged
Blocks.SNOWBlocks.<clinit> names block sound sets by key; snow's own definition is unchanged
BlocksAttacks.resolveBlockedDamagereturns Optional.empty in place of 0 when nothing is blocked; the copy's caller already treats only a positive block as one
BubbleColumnBlock.getFluidStategetSource() 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;)Vthe occupy test moved to LiquidBlock.shouldBubbleColumnOccupy; a source always holds amount 8
ByteBufCodecs.holderSetanonymous codec class renumbered $34 -> $36
CelebrateVillagersSurvivedRaid.tickthe firework tint moved to FireworkExplosion.DEFAULT_COLOR_TINTS, the same 16 colors DyeColor carried
ChunkGenerator.findNearestMapStructureStructureStart.isValid check dropped; a missing start is now null, which the null check catches
ChunkGenerator.getFirstOccupiedHeightgetBaseHeight 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.getPlayerViewDistancei2l widening for Math.clamp(JII)I
ClientboundBlockUpdatePacket.STREAM_CODECBLOCK_STATE_REGISTRY_STREAM_CODEC is the idMapper over BLOCK_STATE_REGISTRY
ClientboundCustomPayloadPacket.CONFIG_STREAM_CODECthe brand payload is added in a lambda in place of a list literal
ClientboundLoginPacket.STREAM_CODECcollection factory newArrayListWithCapacity -> ArrayList::new
ClientboundTakeItemEntityPacket.STREAM_CODECthe codec is a composite of the same three VarInts
ClientboundUpdateAdvancementsPacket.STREAM_CODECcollection factory newArrayListWithCapacity -> ArrayList::new
DesertPyramidStructure.afterPlaceObjectArrayList built from the set rather than set.stream().toList(); the same iteration order
DyeColor.$VALUESDyeColor.<clinit> drops the map and firework colors the enum carried, now data; ids and names are unchanged
DyeColor.BLACKDyeColor.<clinit> drops the map and firework colors the enum carried, now data; ids and names are unchanged
EnchantmentMenu.getEnchantmentListRegistryAccess -> HolderGetter.Provider, Registry.get -> HolderGetter.get
Entity.checkFallDamage26.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.movethe 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.SADDLEBY_ID replaced by enumCodec over the class; the same ids
EquipmentSlot.STREAM_CODECBY_ID replaced by enumCodec over the class; the same ids
FallingBlockEntity.tickHolderLookup.Provider -> HolderGetter.Provider
FireworkExplosion$Shape.$VALUESBY_ID replaced by enumCodec over the class; the same continuous ids, ZERO out of bounds
FireworkRocketEntity.tickgetDeltaMovement().add -> addDeltaMovement
FlowingFluid.getSpreadcanHoldSpecificFluid passes the FluidState; SimpleWaterloggedBlock.canPlaceLiquid asks isSourceOfType(WATER), as type == WATER did
FoodData.tickisHurt/heal -> canHealNaturally/healNaturally: the same health > 0 and below max test, and the same clamped add
HoneycombItem.tryApplyToSignplaySound takes a Holder<SoundEvent>; volume and pitch default to 1
InfestedBlock.spawnAfterBreakpasses one more argument through to Block.spawnAfterBreak; the silverfish logic is unchanged
IronGolem.doHurtTargetgetDeltaMovement().add -> addDeltaMovement
ItemCommands.applyModifierthe modifier is validated through a ValidationWrapper before it is applied
ItemUseAnimation.STREAM_CODECBY_ID replaced by enumCodec over the class; the same continuous ids
LeavesBlock.getOptionalDistanceAthasProperty + getValue -> getValueOrElse(null)
LivingEntity.canFreezethe armor loop moved to isWearingFreezeImmuneWearables, the same code
LivingEntity.jumpInLiquidgetDeltaMovement().add -> addDeltaMovement, the same add behind an isFinite check; the fluid argument became a list
LivingEntity.tickLists.newArrayListWithCapacity -> new ArrayList(int)
Llama.handleEatinghealth < max and heal -> canHealNaturally and healNaturally, the same test and clamped add
MerchantOffer.getModifiedCostCounti2l widening for Math.clamp(JII)I
MerchantOffer.satisfiedByi2l widening for Math.clamp(JII)I
NetherFossilStructure.findGenerationPointthe 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.findGenerationPointBiomeResolver renamed NoiseBiomeResolver
OceanRuinPieces.allPositionsLists.newArrayList -> new ArrayList
Painting.createcanBePlaced adds noBorderCollision; the server models no world border and the default one (±29999984) never collides where a painting can hang
PoiTypes.HOMEPoiTypes holds Holders and the keys move to PoiTypeIds; home's definition is unchanged
PointedDripstoneBlock.canGrowis(WATER) && isSource() folded into isSourceOfType(WATER)
PointedDripstoneBlock.getCauldronFillFluidTypefilters on FluidInfo.canFillCauldron (a source) in place of WATER or LAVA, which are the source types; flowing water is FLOWING_WATER
PointedDripstoneBlock.getFluidAboveStalactiteFluidInfo records whether the fluid above is a source, which only canFillCauldron reads
PointedDripstoneBlock.maybeTransferFluidthe chances come from Fluid.dripstoneTransferProbability, 0.17578125 for water and 0.05859375 for lava as before; a non-source fluid still returns early
PortalForcer.findClosestPortalPositionPoiTypes -> PoiTypeIds
Potions.SWIFTNESSPotions.<clinit> adds freezing and long_freezing; swiftness is unchanged
SegmentableBlock.getStateForPlacementgetLevel().getBlockState(getClickedPos()) -> getClickedBlockState()
ServerChunkCache.tickChunks()Vthe debug-world early return is gone; a normal world ticks the same
ServerLevel.findLightningTargetAroundPoiTypes -> PoiTypeIds
SetClosestHomeAsWalkTarget.createPoiTypes -> PoiTypeIds
ShulkerBullet.tickgetDeltaMovement().add -> addDeltaMovement
SkeletonTrapGoal.tickenchantItemFromProvider takes a HolderGetter.Provider
SleepInBed.checkExtraStartConditionsgetValue(OCCUPIED) -> getValueOrElse(OCCUPIED, false)
SpeleothemBlock.canTipGrowisTip is no longer private, so it is not inlined; its body is unchanged
SpeleothemBlock.findTipisTip is no longer private, so it is not inlined; its body is unchanged
SpeleothemBlock.growasks shouldMergeTips(), which is true for pointed dripstone; isTip is no longer inlined
SpeleothemBlock.growStalactiteOrStalagmiteIfPossiblepicks 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.growStalagmiteBelowasks shouldMergeTips(), which is true for pointed dripstone; isTip is no longer inlined
SpeleothemBlock.isUnmergedTipWithDirectionisTip is no longer private, so it is not inlined; its body is unchanged
SpeleothemBlock.spawnFallingStalactiteisTip 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.knockbackthe hit sound left knockback; the push is unchanged
ThrowableProjectile.tickthe bubble particles moved to addBubbleParticles; they are client particles
ValidateNearbyPoi.bedIsOccupiedgetValue(OCCUPIED) -> getValueOrElse(OCCUPIED, false)
ValidateNearbyPoi.creategetValue(OCCUPIED) -> getValueOrElse(OCCUPIED, false)
VillagerGoalPackages.validateBedPoigetValue(OCCUPIED) -> getValueOrElse(OCCUPIED, false); every bed has the property
VineBlock.getStateForPlacementgetLevel().getBlockState(getClickedPos()) -> getClickedBlockState()
Warden$VibrationUser.onReceiveVibrationan instanceof pattern adds a local; the vibration handling is unchanged
Zombie.DOOR_BREAKING_PREDICATEZombie.<clinit> adds DATA_FROSTBITE_CONVERSION_ID; the door predicate is unchanged
net/minecraft/server/commands/ExecuteCommand.countItemsslot 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.json before and after, and the review script's output.