Begin implementation of CheckStyle style checking

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-04-23 14:00:30 +10:00
parent a0f2b74c8d
commit 7afe4d02f8
28 changed files with 144 additions and 97 deletions

View File

@@ -1,11 +1,10 @@
--- a/net/minecraft/server/TileEntityFurnace.java
+++ b/net/minecraft/server/TileEntityFurnace.java
@@ -7,6 +7,17 @@
@@ -7,6 +7,16 @@
import java.util.Map;
import java.util.Map.Entry;
import javax.annotation.Nullable;
+// CraftBukkit start
+import java.util.List;
+import org.bukkit.craftbukkit.block.CraftBlock;
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
+import org.bukkit.craftbukkit.inventory.CraftItemStack;
@@ -18,7 +17,7 @@
public abstract class TileEntityFurnace extends TileEntityContainer implements IWorldInventory, RecipeHolder, AutoRecipeOutput, ITickable {
@@ -135,6 +146,36 @@
@@ -135,6 +145,36 @@
return map;
}
@@ -55,7 +54,7 @@
private static void a(Map<Item, Integer> map, Tag<Item> tag, int i) {
Iterator iterator = tag.a().iterator();
@@ -211,12 +252,23 @@
@@ -211,12 +251,23 @@
this.cookTime = MathHelper.clamp(this.cookTime - 2, 0, this.cookTimeTotal);
}
} else {
@@ -82,7 +81,7 @@
flag1 = true;
if (!itemstack.isEmpty()) {
Item item = itemstack.getItem();
@@ -278,11 +330,38 @@
@@ -278,11 +329,38 @@
ItemStack itemstack1 = irecipe.c();
ItemStack itemstack2 = (ItemStack) this.items.get(2);
@@ -121,7 +120,7 @@
if (!this.world.isClientSide) {
this.a(irecipe);
@@ -307,7 +386,7 @@
@@ -307,7 +385,7 @@
}
protected int getRecipeCookingTime() {
@@ -130,7 +129,7 @@
}
public static boolean isFuel(ItemStack itemstack) {
@@ -434,7 +513,7 @@
@@ -434,7 +512,7 @@
@Override
public void b(EntityHuman entityhuman) {}
@@ -139,7 +138,7 @@
List<IRecipe<?>> list = Lists.newArrayList();
Iterator iterator = this.n.entrySet().iterator();
@@ -443,7 +522,7 @@
@@ -443,7 +521,7 @@
entityhuman.world.getCraftingManager().a((MinecraftKey) entry.getKey()).ifPresent((irecipe) -> {
list.add(irecipe);
@@ -148,7 +147,7 @@
});
}
@@ -451,7 +530,7 @@
@@ -451,7 +529,7 @@
this.n.clear();
}
@@ -157,7 +156,7 @@
int j;
if (f == 0.0F) {
@@ -465,6 +544,14 @@
@@ -465,6 +543,14 @@
i = j;
}