Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Implement isEnabled / setEnabled for CraftMinecartHopper
Dieser Commit ist enthalten in:
Ursprung
e56aa46656
Commit
52c7fc0a1a
@ -28,4 +28,14 @@ final class CraftMinecartHopper extends CraftMinecart implements HopperMinecart
|
|||||||
public Inventory getInventory() {
|
public Inventory getInventory() {
|
||||||
return inventory;
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren