Add variant API to MushroomCow

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-04-26 14:48:19 +10:00
parent 1ba83eb294
commit f8494aa951
2 changed files with 23 additions and 0 deletions

View File

@@ -47,3 +47,12 @@
for (i = 0; i < 5; ++i) {
this.world.addEntity(new EntityItem(this.world, this.locX, this.locY + (double) this.getHeight(), this.locZ, new ItemStack(this.dV().d.getBlock())));
@@ -156,7 +176,7 @@
return Pair.of(blockflowers.d(), blockflowers.e());
}
- private void a(EntityMushroomCow.Type entitymushroomcow_type) {
+ public void a(EntityMushroomCow.Type entitymushroomcow_type) { // PAIL
this.datawatcher.set(EntityMushroomCow.bz, entitymushroomcow_type.c);
}