Testing translucent textures.
This commit is contained in:
parent
da6f410394
commit
3fc6b5627f
10 changed files with 22 additions and 8 deletions
|
@ -9,6 +9,8 @@ import net.minecraft.block.state.IBlockState;
|
|||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.EnumWorldBlockLayer;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.bloodmagic.BloodMagic;
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
|
@ -54,6 +56,12 @@ public class BlockDemonCrystal extends Block
|
|||
return 3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canRenderInLayer(EnumWorldBlockLayer layer)
|
||||
{
|
||||
return layer == EnumWorldBlockLayer.CUTOUT_MIPPED || layer == EnumWorldBlockLayer.TRANSLUCENT;
|
||||
}
|
||||
|
||||
// public boolean canBlockStay(World worldIn, BlockPos pos, IBlockState state)
|
||||
// {
|
||||
// return (worldIn.getLight(pos) >= 8 || worldIn.canSeeSky(pos)) && worldIn.getBlockState(pos.down()).getBlock().canSustainPlant(worldIn, pos.down(), net.minecraft.util.EnumFacing.UP, this);
|
||||
|
@ -119,4 +127,10 @@ public class BlockDemonCrystal extends Block
|
|||
// }
|
||||
// return ret;
|
||||
// }
|
||||
|
||||
@Override
|
||||
public int colorMultiplier(IBlockAccess worldIn, BlockPos pos, int renderPass)
|
||||
{
|
||||
return 0xffffff;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue