Implement isEnabled / setEnabled for CraftMinecartHopper

This commit is contained in:
Matthew 2016-03-18 11:42:33 -04:00 committed by md_5
parent e56aa46656
commit 52c7fc0a1a

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
}
}