Add Shearable API

This commit is contained in:
Owen1212055
2021-10-17 15:39:48 -04:00
parent 6e271dc9e4
commit 2e77028ed4
7 changed files with 67 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
--- a/net/minecraft/world/entity/Shearable.java
+++ b/net/minecraft/world/entity/Shearable.java
@@ -8,4 +8,5 @@
void shear(ServerLevel world, SoundSource shearedSoundCategory, ItemStack shears);
boolean readyForShearing();
+ net.minecraft.world.level.Level level(); // Shearable API - expose default level needed for shearing.
}