Organise imports

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-03-09 08:47:33 +11:00
parent 1ae7bcc4d0
commit b2efd58164
188 changed files with 879 additions and 825 deletions

View File

@@ -1,17 +1,18 @@
--- a/net/minecraft/server/TileEntityChest.java
+++ b/net/minecraft/server/TileEntityChest.java
@@ -2,6 +2,10 @@
@@ -3,6 +3,11 @@
import java.util.Iterator;
import java.util.List;
+// CraftBukkit start
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
+import org.bukkit.entity.HumanEntity;
+// CraftBukkit end
+
public class TileEntityChest extends TileEntityLootable implements ITickable {
@@ -11,6 +15,37 @@
private NonNullList<ItemStack> items;
@@ -11,6 +16,37 @@
public int viewingCount;
private int j;
@@ -49,7 +50,7 @@
protected TileEntityChest(TileEntityTypes<?> tileentitytypes) {
super(tileentitytypes);
this.items = NonNullList.a(27, ItemStack.b);
@@ -61,6 +96,13 @@
@@ -61,6 +97,13 @@
this.b = this.a;
float f = 0.1F;
@@ -63,7 +64,7 @@
if (this.viewingCount > 0 && this.a == 0.0F) {
this.playOpenSound(SoundEffects.BLOCK_CHEST_OPEN);
}
@@ -155,8 +197,20 @@
@@ -155,8 +198,20 @@
if (this.viewingCount < 0) {
this.viewingCount = 0;
}
@@ -84,7 +85,7 @@
this.onOpen();
}
@@ -165,7 +219,18 @@
@@ -165,7 +220,18 @@
@Override
public void closeContainer(EntityHuman entityhuman) {
if (!entityhuman.isSpectator()) {
@@ -103,7 +104,7 @@
this.onOpen();
}
@@ -175,7 +240,7 @@
@@ -175,7 +241,7 @@
Block block = this.getBlock().getBlock();
if (block instanceof BlockChest) {
@@ -112,7 +113,7 @@
this.world.applyPhysics(this.position, block);
}
@@ -216,4 +281,11 @@
@@ -216,4 +282,11 @@
protected Container createContainer(int i, PlayerInventory playerinventory) {
return ContainerChest.a(i, playerinventory, this);
}