-
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify shear patches and fix some differences compared to vanilla (#…
…581)
- Loading branch information
1 parent
f1652ec
commit e21619f
Showing
7 changed files
with
83 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
--- a/net/minecraft/world/entity/Shearable.java | ||
+++ b/net/minecraft/world/entity/Shearable.java | ||
@@ -2,8 +_,11 @@ | ||
@@ -2,8 +_,20 @@ | ||
|
||
import net.minecraft.sounds.SoundSource; | ||
|
||
+@Deprecated // Forge: Use IShearable | ||
public interface Shearable { | ||
+ @Deprecated // Forge: Use IShearable | ||
-public interface Shearable { | ||
+/** | ||
+ * @deprecated Neo: Use {@link net.neoforged.neoforge.common.IShearable} instead. | ||
+ */ | ||
+@Deprecated | ||
+public interface Shearable extends net.neoforged.neoforge.common.IShearable { | ||
+ /** | ||
+ * @deprecated Neo: Use {@link net.neoforged.neoforge.common.IShearable#onSheared(net.minecraft.world.entity.player.Player, net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, int)} instead. | ||
+ */ | ||
+ @Deprecated | ||
void shear(SoundSource p_21749_); | ||
|
||
+ @Deprecated // Forge: Use IShearable | ||
+ /** | ||
+ * @deprecated Neo: Use {@link net.neoforged.neoforge.common.IShearable#isShearable(net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level, net.minecraft.core.BlockPos)} instead. | ||
+ */ | ||
+ @Deprecated | ||
boolean readyForShearing(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters