mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:46:44 +01:00
Implement isEnabled / setEnabled for CraftMinecartHopper
This commit is contained in:
parent
e56aa46656
commit
52c7fc0a1a
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…
Add table
Reference in a new issue