Update buildscript & spotlessApply (#78)

* Update buildscript & spotlessApply

* Add mapping version
This commit is contained in:
Raven Szewczyk authored and GitHub committed 2022-07-21 18:26:15 +07:00
1 parent f272840987
commit cf41b89ae4
851 files changed
+95348 -92599

No files matched your search

@@ -1,96 +1,94 @@
package crazypants.enderio.machine.light;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import crazypants.enderio.BlockEio;
import crazypants.enderio.ModObject;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import crazypants.enderio.BlockEio;
import crazypants.enderio.ModObject;
public class BlockLightNode extends BlockEio {
public static BlockLightNode create() {
BlockLightNode result = new BlockLightNode();
result.init();
return result;
}
public BlockLightNode() {
super(ModObject.blockLightNode.unlocalisedName, TileLightNode.class, Material.air);
setCreativeTab(null);
setBlockBounds(0, 0, 0, 0, 0, 0);
setTickRandomly(true);
}
@Override
public boolean renderAsNormalBlock() {
return false;
}
@Override
public boolean isOpaqueCube() {
return false;
}
@Override
public boolean isBlockSolid(IBlockAccess iblockaccess, int x, int y, int z, int l) {
return false;
}
@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z) {
return null;
}
@Override
public boolean isReplaceable(IBlockAccess world, int x, int y, int z) {
return true;
}
@Override
public void breakBlock(World world, int x, int y, int z, Block par5, int par6) {
TileLightNode te = (TileLightNode) world.getTileEntity(x, y, z);
if(te != null) {
te.onBlockRemoved();
public static BlockLightNode create() {
BlockLightNode result = new BlockLightNode();
result.init();
return result;
}
}
@Override
public int getLightValue(IBlockAccess world, int x, int y, int z) {
return world.getBlockMetadata(x, y, z) > 0 ? 15 : 0;
}
@Override
public void onNeighborBlockChange(World world, int x, int y, int z, Block par5) {
TileLightNode te = (TileLightNode) world.getTileEntity(x, y, z);
if(te != null) {
te.onNeighbourChanged();
public BlockLightNode() {
super(ModObject.blockLightNode.unlocalisedName, TileLightNode.class, Material.air);
setCreativeTab(null);
setBlockBounds(0, 0, 0, 0, 0, 0);
setTickRandomly(true);
}
}
@Override
public void updateTick(World world, int x, int y, int z, Random r) {
TileLightNode te = (TileLightNode) world.getTileEntity(x, y, z);
if(te != null) {
te.checkParent();
@Override
public boolean renderAsNormalBlock() {
return false;
}
}
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iIconRegister) {
blockIcon = iIconRegister.registerIcon("enderio:blockElectricLightFace");
}
@Override
public boolean isOpaqueCube() {
return false;
}
@Override
public int quantityDropped(Random p_149745_1_) {
return 0;
}
@Override
public boolean isBlockSolid(IBlockAccess iblockaccess, int x, int y, int z, int l) {
return false;
}
@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z) {
return null;
}
@Override
public boolean isReplaceable(IBlockAccess world, int x, int y, int z) {
return true;
}
@Override
public void breakBlock(World world, int x, int y, int z, Block par5, int par6) {
TileLightNode te = (TileLightNode) world.getTileEntity(x, y, z);
if (te != null) {
te.onBlockRemoved();
}
}
@Override
public int getLightValue(IBlockAccess world, int x, int y, int z) {
return world.getBlockMetadata(x, y, z) > 0 ? 15 : 0;
}
@Override
public void onNeighborBlockChange(World world, int x, int y, int z, Block par5) {
TileLightNode te = (TileLightNode) world.getTileEntity(x, y, z);
if (te != null) {
te.onNeighbourChanged();
}
}
@Override
public void updateTick(World world, int x, int y, int z, Random r) {
TileLightNode te = (TileLightNode) world.getTileEntity(x, y, z);
if (te != null) {
te.checkParent();
}
}
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iIconRegister) {
blockIcon = iIconRegister.registerIcon("enderio:blockElectricLightFace");
}
@Override
public int quantityDropped(Random p_149745_1_) {
return 0;
}
}