Mappings Update

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-12-26 08:00:00 +11:00
parent 239b2828db
commit d7e312278d
120 changed files with 878 additions and 1619 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/server/ItemStack.java
+++ b/net/minecraft/server/ItemStack.java
@@ -16,6 +16,22 @@
@@ -15,6 +15,22 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -23,7 +23,7 @@
public final class ItemStack {
private static final Logger c = LogManager.getLogger();
@@ -50,25 +66,49 @@
@@ -49,25 +65,49 @@
this.E();
}
@@ -76,7 +76,7 @@
this.E();
}
@@ -98,7 +138,7 @@
@@ -97,7 +137,7 @@
return this.h ? Items.AIR : this.item;
}
@@ -85,7 +85,7 @@
EntityHuman entityhuman = itemactioncontext.getEntity();
BlockPosition blockposition = itemactioncontext.getClickPosition();
ShapeDetectorBlock shapedetectorblock = new ShapeDetectorBlock(itemactioncontext.getWorld(), blockposition, false);
@@ -106,12 +146,144 @@
@@ -105,12 +145,144 @@
if (entityhuman != null && !entityhuman.abilities.mayBuild && !this.b(itemactioncontext.getWorld().F(), shapedetectorblock)) {
return EnumInteractionResult.PASS;
} else {
@@ -231,7 +231,7 @@
return enuminteractionresult;
}
@@ -135,7 +307,7 @@
@@ -134,7 +306,7 @@
nbttagcompound.setString("id", minecraftkey == null ? "minecraft:air" : minecraftkey.toString());
nbttagcompound.setByte("Count", (byte) this.count);
if (this.tag != null) {
@@ -240,7 +240,7 @@
}
return nbttagcompound;
@@ -213,6 +385,11 @@
@@ -212,6 +384,11 @@
if (this.isDamaged(i, entityliving.getRandom(), entityliving instanceof EntityPlayer ? (EntityPlayer) entityliving : null)) {
entityliving.c(this);
Item item = this.getItem();
@@ -252,7 +252,7 @@
this.subtract(1);
if (entityliving instanceof EntityHuman) {
@@ -336,6 +513,17 @@
@@ -335,6 +512,17 @@
return this.tag;
}
@@ -270,7 +270,7 @@
public NBTTagCompound getOrCreateTag() {
if (this.tag == null) {
this.setTag(new NBTTagCompound());
@@ -480,6 +668,14 @@
@@ -479,6 +667,14 @@
}
public void setRepairCost(int i) {
@@ -285,7 +285,7 @@
this.getOrCreateTag().setInt("RepairCost", i);
}
@@ -522,6 +718,13 @@
@@ -521,6 +717,13 @@
nbttaglist.add((NBTBase) nbttagcompound);
}