@@ -49,7 +49,7 @@
|
||||
decimalformat.setDecimalFormatSymbols(DecimalFormatSymbols.getInstance(Locale.ROOT));
|
||||
});
|
||||
public static final String TAG_ENCH = "Enchantments";
|
||||
@@ -142,16 +175,30 @@
|
||||
@@ -140,16 +173,30 @@
|
||||
this.checkEmpty();
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
this.getItem().b(this.tag);
|
||||
}
|
||||
|
||||
@@ -159,6 +206,11 @@
|
||||
@@ -157,6 +204,11 @@
|
||||
this.setDamage(this.getDamage());
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
this.checkEmpty();
|
||||
}
|
||||
|
||||
@@ -196,7 +248,7 @@
|
||||
@@ -194,7 +246,7 @@
|
||||
return this.getItem() == item;
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
EntityHuman entityhuman = itemactioncontext.getEntity();
|
||||
BlockPosition blockposition = itemactioncontext.getClickPosition();
|
||||
ShapeDetectorBlock shapedetectorblock = new ShapeDetectorBlock(itemactioncontext.getWorld(), blockposition, false);
|
||||
@@ -204,12 +256,155 @@
|
||||
@@ -202,12 +254,155 @@
|
||||
if (entityhuman != null && !entityhuman.getAbilities().mayBuild && !this.b(itemactioncontext.getWorld().r(), shapedetectorblock)) {
|
||||
return EnumInteractionResult.PASS;
|
||||
} else {
|
||||
@@ -260,7 +260,7 @@
|
||||
|
||||
return enuminteractionresult;
|
||||
}
|
||||
@@ -290,6 +485,21 @@
|
||||
@@ -288,6 +483,21 @@
|
||||
}
|
||||
|
||||
i -= k;
|
||||
@@ -282,7 +282,7 @@
|
||||
if (i <= 0) {
|
||||
return false;
|
||||
}
|
||||
@@ -311,6 +521,11 @@
|
||||
@@ -309,6 +519,11 @@
|
||||
if (this.isDamaged(i, t0.getRandom(), t0 instanceof EntityPlayer ? (EntityPlayer) t0 : null)) {
|
||||
consumer.accept(t0);
|
||||
Item item = this.getItem();
|
||||
@@ -294,7 +294,7 @@
|
||||
|
||||
this.subtract(1);
|
||||
if (t0 instanceof EntityHuman) {
|
||||
@@ -466,6 +681,17 @@
|
||||
@@ -464,6 +679,17 @@
|
||||
return this.tag;
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@
|
||||
public NBTTagCompound getOrCreateTag() {
|
||||
if (this.tag == null) {
|
||||
this.setTag(new NBTTagCompound());
|
||||
@@ -849,6 +1075,12 @@
|
||||
@@ -844,6 +1070,12 @@
|
||||
}
|
||||
|
||||
public void setRepairCost(int i) {
|
||||
@@ -325,7 +325,7 @@
|
||||
this.getOrCreateTag().setInt("RepairCost", i);
|
||||
}
|
||||
|
||||
@@ -898,6 +1130,13 @@
|
||||
@@ -893,6 +1125,13 @@
|
||||
nbttaglist.add(nbttagcompound);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user