Fixed bubble and lamp transparency
This commit is contained in:
parent
948ae4429f
commit
c30c1831be
2 changed files with 18 additions and 1 deletions
|
@ -4,12 +4,16 @@ import cr0s.warpdrive.data.BlockProperties;
|
||||||
import cr0s.warpdrive.data.EnumTier;
|
import cr0s.warpdrive.data.EnumTier;
|
||||||
|
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.util.BlockRenderLayer;
|
||||||
import net.minecraft.util.math.AxisAlignedBB;
|
import net.minecraft.util.math.AxisAlignedBB;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
|
|
||||||
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class BlockLamp_bubble extends BlockAbstractLamp {
|
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);
|
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;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -5,5 +5,5 @@
|
||||||
newmtl txt_lamp_flat
|
newmtl txt_lamp_flat
|
||||||
Ka 1.000000 1.000000 1.000000
|
Ka 1.000000 1.000000 1.000000
|
||||||
Kd 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
|
map_Kd warpdrive:blocks/decoration/lamp_flat
|
||||||
|
|
Loading…
Add table
Reference in a new issue