geforkt von Mirrors/Paper
Move getItemInUse up to LivingEntity
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
dd0e55721d
Commit
3f9e7c4e39
@ -456,12 +456,6 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
|||||||
return getHandle().isUsingItem();
|
return getHandle().isUsingItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ItemStack getItemInUse() {
|
|
||||||
net.minecraft.world.item.ItemStack item = getHandle().getUseItem();
|
|
||||||
return item.isEmpty() ? null : CraftItemStack.asCraftMirror(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean setWindowProperty(InventoryView.Property prop, int value) {
|
public boolean setWindowProperty(InventoryView.Property prop, int value) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -258,6 +258,12 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
|||||||
getHandle().maxAirTicks = ticks;
|
getHandle().maxAirTicks = ticks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ItemStack getItemInUse() {
|
||||||
|
net.minecraft.world.item.ItemStack item = getHandle().getUseItem();
|
||||||
|
return item.isEmpty() ? null : CraftItemStack.asCraftMirror(item);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getItemInUseTicks() {
|
public int getItemInUseTicks() {
|
||||||
return getHandle().getUseItemRemainingTicks();
|
return getHandle().getUseItemRemainingTicks();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren