mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
1cbe6e860c
commit
202b7ce27a
790 files changed
+11316
-9692
No files matched your search
@@ -1,9 +1,7 @@
|
||||
package WayofTime.alchemicalWizardry.common.block;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TESpectralBlock;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
@@ -16,7 +14,12 @@ import net.minecraft.util.Facing;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TESpectralBlock;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class SpectralBlock extends BlockContainer {
|
||||
|
||||
public SpectralBlock() {
|
||||
super(Material.rock);
|
||||
this.setBlockName("spectralBlock");
|
||||
@@ -40,15 +43,14 @@ public class SpectralBlock extends BlockContainer {
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean shouldSideBeRendered(
|
||||
IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_) {
|
||||
public boolean shouldSideBeRendered(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_,
|
||||
int p_149646_5_) {
|
||||
Block block = p_149646_1_.getBlock(p_149646_2_, p_149646_3_, p_149646_4_);
|
||||
|
||||
if (p_149646_1_.getBlockMetadata(p_149646_2_, p_149646_3_, p_149646_4_)
|
||||
!= p_149646_1_.getBlockMetadata(
|
||||
p_149646_2_ - Facing.offsetsXForSide[p_149646_5_],
|
||||
p_149646_3_ - Facing.offsetsYForSide[p_149646_5_],
|
||||
p_149646_4_ - Facing.offsetsZForSide[p_149646_5_])) {
|
||||
if (p_149646_1_.getBlockMetadata(p_149646_2_, p_149646_3_, p_149646_4_) != p_149646_1_.getBlockMetadata(
|
||||
p_149646_2_ - Facing.offsetsXForSide[p_149646_5_],
|
||||
p_149646_3_ - Facing.offsetsYForSide[p_149646_5_],
|
||||
p_149646_4_ - Facing.offsetsZForSide[p_149646_5_])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -69,8 +71,8 @@ public class SpectralBlock extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockActivated(
|
||||
World world, int x, int y, int z, EntityPlayer player, int idk, float what, float these, float are) {
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int idk, float what,
|
||||
float these, float are) {
|
||||
if (player.isSneaking()) {
|
||||
return false;
|
||||
}
|
||||
@@ -80,7 +82,12 @@ public class SpectralBlock extends BlockContainer {
|
||||
if (playerItem != null) {
|
||||
if (playerItem.getItem() instanceof ItemBlock) {
|
||||
world.setBlock(
|
||||
x, y, z, ((ItemBlock) (playerItem.getItem())).field_150939_a, playerItem.getItemDamage(), 3);
|
||||
x,
|
||||
y,
|
||||
z,
|
||||
((ItemBlock) (playerItem.getItem())).field_150939_a,
|
||||
playerItem.getItemDamage(),
|
||||
3);
|
||||
|
||||
if (!player.capabilities.isCreativeMode) {
|
||||
playerItem.stackSize--;
|
||||
|
||||
Reference in new issue
Block a user