mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
Implement isEnabled / setEnabled for CraftMinecartHopper
By: Matthew <stteg@hotmail.com>
This commit is contained in:
parent
0d7ce64a2f
commit
1a03d09e14
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue