Fixed bubble and lamp transparency

This commit is contained in:
Unknown 2018-07-24 15:06:25 +02:00 committed by unknown
parent 948ae4429f
commit c30c1831be
2 changed files with 18 additions and 1 deletions

View file

@ -4,12 +4,16 @@ import cr0s.warpdrive.data.BlockProperties;
import cr0s.warpdrive.data.EnumTier;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import javax.annotation.Nonnull;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class BlockLamp_bubble extends BlockAbstractLamp {
private static final AxisAlignedBB AABB_DOWN = new AxisAlignedBB(0.00D, 0.30D, 0.00D, 1.00D, 1.00D, 1.00D);
@ -37,4 +41,17 @@ public class BlockLamp_bubble extends BlockAbstractLamp {
default : return AABB_UP;
}
}
@SuppressWarnings("deprecation")
@Override
public boolean isTranslucent(final IBlockState state) {
return true;
}
@Nonnull
@SideOnly(Side.CLIENT)
@Override
public BlockRenderLayer getBlockLayer() {
return BlockRenderLayer.TRANSLUCENT;
}
}

View file

@ -5,5 +5,5 @@
newmtl txt_lamp_flat
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
d 0.100000
d 1.000000
map_Kd warpdrive:blocks/decoration/lamp_flat