mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 09:02:09 -07:00
@@ -12,7 +12,7 @@
|
||||
+
|
||||
public class EntitySheep extends EntityAnimal {
|
||||
|
||||
private static final DataWatcherObject<Byte> bw = DataWatcher.a(EntitySheep.class, DataWatcherRegistry.a);
|
||||
private static final DataWatcherObject<Byte> bx = DataWatcher.a(EntitySheep.class, DataWatcherRegistry.a);
|
||||
@@ -12,6 +18,13 @@
|
||||
public boolean a(EntityHuman entityhuman) {
|
||||
return false;
|
||||
@@ -25,8 +25,8 @@
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
}, 2, 1);
|
||||
private static final Map<EnumColor, float[]> by = Maps.newEnumMap(EnumColor.class);
|
||||
private int bA;
|
||||
private static final Map<EnumColor, float[]> bz = Maps.newEnumMap(EnumColor.class);
|
||||
private int bB;
|
||||
@@ -26,6 +39,7 @@
|
||||
this.setSize(0.9F, 1.3F);
|
||||
this.container.setItem(0, new ItemStack(Items.DYE));
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
|
||||
protected void r() {
|
||||
@@ -125,11 +139,22 @@
|
||||
@@ -126,11 +140,22 @@
|
||||
public boolean a(EntityHuman entityhuman, EnumHand enumhand, @Nullable ItemStack itemstack) {
|
||||
if (itemstack != null && itemstack.getItem() == Items.SHEARS && !this.isSheared() && !this.isBaby()) {
|
||||
if (!this.world.isClientSide) {
|
||||
@@ -58,10 +58,10 @@
|
||||
|
||||
entityitem.motY += (double) (this.random.nextFloat() * 0.05F);
|
||||
entityitem.motX += (double) ((this.random.nextFloat() - this.random.nextFloat()) * 0.1F);
|
||||
@@ -212,6 +237,12 @@
|
||||
@@ -217,6 +242,12 @@
|
||||
}
|
||||
|
||||
public void B() {
|
||||
public void A() {
|
||||
+ // CraftBukkit start
|
||||
+ SheepRegrowWoolEvent event = new SheepRegrowWoolEvent((org.bukkit.entity.Sheep) this.getBukkitEntity());
|
||||
+ this.world.getServer().getPluginManager().callEvent(event);
|
||||
|
Reference in New Issue
Block a user