Skip to content

Instantly share code, notes, and snippets.

@apple502j
Created May 12, 2023 15:54
Show Gist options
  • Save apple502j/fa6671e34587a24203dbe3d23af60150 to your computer and use it in GitHub Desktop.
Save apple502j/fa6671e34587a24203dbe3d23af60150 to your computer and use it in GitHub Desktop.

1.20-pre1: Endless Dragon Update

Try going to the end, saving the game, opening again, and defeating the dragon. There's another one!

Fabric API changes

No breaking changes were made. FabricBlockSettings.of() was deprecated; use create instead.

Minecraft changes

ItemStack methods

Several equality methods in ItemStack were removed.

  • ItemStack#isItemEqual: use the static areItemsEqual() method.
  • ItemStack#areNbtEqual: use canCombine (which also checks for items) or compare NBT yourself.

Loot changes

LootContext.Builder is moved to LootContextParameterSet.Builder and its parameter method was renamed to add. The putDrop methood was renamed to addDynamicDrop. The getNullable method was renamed to getOptional for consistency. The loot inventory seed is now given via supplyInventory.

Additions

  • ClientPlayInteractionManager#getBlockBreakingProgress to get the integer progress.
  • DamageSources#outsideBorder and genericKill for new damage sources.
  • RecipeInputInventory, which is an interface base of CraftingInventory. CraftingRecipe subclasses take this instead of CraftingInventory in various methods (including matches).
  • ScreenTexts#OK to get the OK text.

Misc changes

  • AbstractBlock.Settings#of is renamed to create.
  • Block#dropStacks overload taking LootContext.Builder was removed.
  • RecipeProvider#offerWoolDyeingRecipe and similar methods were merged to offerDyeableRecipes (which also offers re-coloring).
  • GameJoinS2CPacket and PlayerRespawnS2CPacket now holds the portal cooldown.
  • ChunkHolder.LevelType is now separated to ChunkLevelType.
  • MinecraftServer#getUserCache is now nullable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment