Implement isEnabled / setEnabled for CraftMinecartHopper

By: Matthew <stteg@hotmail.com>
This commit is contained in:
CraftBukkit/Spigot 2016-03-18 11:42:33 -04:00
parent 0d7ce64a2f
commit 1a03d09e14

View file

@ -28,4 +28,14 @@ final class CraftMinecartHopper extends CraftMinecart implements HopperMinecart
public Inventory getInventory() {
return inventory;
}
@Override
public boolean isEnabled() {
return ((EntityMinecartHopper) getHandle()).C(); // PAIL: Rename isEnabled
}
@Override
public void setEnabled(boolean enabled) {
((EntityMinecartHopper) getHandle()).k(enabled); // PAIL: Rename setEnabled
}
}