Deprecate minor capital spelling mistake in minecart watcher
This commit is contained in:
parent
50e94afd11
commit
fb3b7d86ee
@ -17,10 +17,15 @@ public class MinecartWatcher extends FlagWatcher {
|
||||
return new ItemStack(id, 1, (short) data);
|
||||
}
|
||||
|
||||
public int getBlockOffSet() {
|
||||
public int getBlockOffset() {
|
||||
return (Integer) getValue(21, 0);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public int getBlockOffSet() {
|
||||
return getBlockOffset();
|
||||
}
|
||||
|
||||
public float getDamage() {
|
||||
return (Float) getValue(19, 0F);
|
||||
}
|
||||
@ -33,22 +38,27 @@ public class MinecartWatcher extends FlagWatcher {
|
||||
int id = item.getTypeId();
|
||||
int data = item.getDurability();
|
||||
setValue(20, (int) (id & 0xffff | data << 16));
|
||||
sendData(20);
|
||||
setViewBlockInCart(true);
|
||||
setValue(22, (byte) 1);
|
||||
sendData(20, 22);
|
||||
}
|
||||
|
||||
public void setBlockOffSet(int i) {
|
||||
public void setBlockOffset(int i) {
|
||||
setValue(21, i);
|
||||
sendData(21);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setBlockOffSet(int i) {
|
||||
setBlockOffset(i);
|
||||
}
|
||||
|
||||
public void setDamage(float damage) {
|
||||
setValue(19, damage);
|
||||
sendData(19);
|
||||
}
|
||||
|
||||
public void setViewBlockInCart(boolean custom) {
|
||||
setValue(22, (byte) (custom ? 1 : 0));
|
||||
public void setViewBlockInCart(boolean viewBlock) {
|
||||
setValue(22, (byte) (viewBlock ? 1 : 0));
|
||||
sendData(22);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user