mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-27 15:33:06 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
8d02293e71
commit
275d137ba8
775 files changed
+10673
-8709
No files matched your search
@@ -1,6 +1,13 @@
|
||||
package crazypants.util;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
import com.enderio.core.common.util.BlockCoord;
|
||||
|
||||
import crazypants.enderio.conduit.IConduitBundle;
|
||||
import crazypants.enderio.conduit.TileConduitBundle;
|
||||
import crazypants.enderio.conduit.gas.IGasConduit;
|
||||
@@ -11,10 +18,6 @@ import crazypants.enderio.machine.generator.combustion.PacketCombustionTank;
|
||||
import crazypants.enderio.machine.generator.combustion.TileCombustionGenerator;
|
||||
import crazypants.enderio.machine.generator.stirling.PacketBurnTime;
|
||||
import crazypants.enderio.machine.generator.stirling.TileEntityStirlingGenerator;
|
||||
import java.util.Random;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class ClientUtil {
|
||||
|
||||
@@ -48,21 +51,19 @@ public class ClientUtil {
|
||||
double xOff = 0.5 + (rand.nextDouble() - 0.5) * 1.1;
|
||||
double yOff = 0.5 + (rand.nextDouble() - 0.5) * 0.2;
|
||||
double zOff = 0.5 + (rand.nextDouble() - 0.5) * 1.1;
|
||||
Minecraft.getMinecraft()
|
||||
.theWorld
|
||||
.spawnParticle(
|
||||
"portal",
|
||||
bc.x + xOff,
|
||||
bc.y + yOff,
|
||||
bc.z + zOff,
|
||||
(rand.nextDouble() - 0.5) * 1.5,
|
||||
-rand.nextDouble(),
|
||||
(rand.nextDouble() - 0.5) * 1.5);
|
||||
Minecraft.getMinecraft().theWorld.spawnParticle(
|
||||
"portal",
|
||||
bc.x + xOff,
|
||||
bc.y + yOff,
|
||||
bc.z + zOff,
|
||||
(rand.nextDouble() - 0.5) * 1.5,
|
||||
-rand.nextDouble(),
|
||||
(rand.nextDouble() - 0.5) * 1.5);
|
||||
}
|
||||
|
||||
public static void setTankNBT(PacketCombustionTank message, int x, int y, int z) {
|
||||
TileCombustionGenerator tile =
|
||||
(TileCombustionGenerator) Minecraft.getMinecraft().theWorld.getTileEntity(x, y, z);
|
||||
TileCombustionGenerator tile = (TileCombustionGenerator) Minecraft.getMinecraft().theWorld
|
||||
.getTileEntity(x, y, z);
|
||||
if (tile == null) {
|
||||
// no loaded on client when receiving message, can happen when loading the chunks
|
||||
return;
|
||||
@@ -84,8 +85,8 @@ public class ClientUtil {
|
||||
|
||||
public static void setStirlingBurnTime(PacketBurnTime message, int x, int y, int z) {
|
||||
|
||||
TileEntityStirlingGenerator tile =
|
||||
(TileEntityStirlingGenerator) Minecraft.getMinecraft().theWorld.getTileEntity(x, y, z);
|
||||
TileEntityStirlingGenerator tile = (TileEntityStirlingGenerator) Minecraft.getMinecraft().theWorld
|
||||
.getTileEntity(x, y, z);
|
||||
if (tile == null) {
|
||||
// no loaded on client when receiving message, can happen when loading the chunks
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user