mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +00:00
Finish model loader debug mod
This commit is contained in:
1 parent
e482793f69
commit
01a0674490
11 files changed
+66
-19
No files matched your search
@@ -55,6 +55,8 @@ import net.minecraft.util.EnumHand;
|
||||
import net.minecraft.util.ITickable;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.shapes.VoxelShape;
|
||||
import net.minecraft.util.math.shapes.VoxelShapes;
|
||||
import net.minecraft.util.text.TextComponentString;
|
||||
import net.minecraft.world.IBlockReader;
|
||||
import net.minecraft.world.IWorld;
|
||||
@@ -186,6 +188,8 @@ public class ModelLoaderRegistryTest
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static final VoxelShape SHAPE = VoxelShapes.create(1/16D, 1/16D, 1/16D, 15/16D, 15/16D, 15/16D); // We don't really care, just not solid
|
||||
|
||||
public static class CustomModelBlock extends Block
|
||||
{
|
||||
@@ -199,6 +203,12 @@ public class ModelLoaderRegistryTest
|
||||
this.setDefaultState(this.getStateContainer().getBaseState().with(FACING, EnumFacing.NORTH));
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
|
||||
@Override
|
||||
public VoxelShape getRenderShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
|
||||
{
|
||||
return SHAPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullCube(IBlockState state)
|
||||
@@ -285,6 +295,12 @@ public class ModelLoaderRegistryTest
|
||||
{
|
||||
return new OBJTesseractTileEntity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public VoxelShape getRenderShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
|
||||
{
|
||||
return SHAPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullCube(IBlockState state)
|
||||
@@ -430,6 +446,12 @@ public class ModelLoaderRegistryTest
|
||||
super(Properties.create(Material.IRON));
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
|
||||
@Override
|
||||
public VoxelShape getRenderShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
|
||||
{
|
||||
return SHAPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullCube(IBlockState state)
|
||||
@@ -475,7 +497,13 @@ public class ModelLoaderRegistryTest
|
||||
{
|
||||
builder.add(FACING);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public VoxelShape getRenderShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
|
||||
{
|
||||
return SHAPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullCube(IBlockState state)
|
||||
{
|
||||
@@ -614,6 +642,12 @@ public class ModelLoaderRegistryTest
|
||||
this.setDefaultState(this.getStateContainer().getBaseState().with(FACING, EnumFacing.NORTH));
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
|
||||
@Override
|
||||
public VoxelShape getRenderShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
|
||||
{
|
||||
return SHAPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullCube(IBlockState state)
|
||||
@@ -660,6 +694,12 @@ public class ModelLoaderRegistryTest
|
||||
this.setDefaultState(this.getStateContainer().getBaseState().with(NORTH, false).with(SOUTH, false).with(WEST, false).with(EAST, false));
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
|
||||
@Override
|
||||
public VoxelShape getRenderShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
|
||||
{
|
||||
return SHAPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullCube(IBlockState state)
|
||||
@@ -707,6 +747,12 @@ public class ModelLoaderRegistryTest
|
||||
{
|
||||
return new OBJDynamicEyeTileEntity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public VoxelShape getRenderShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
|
||||
{
|
||||
return SHAPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullCube(IBlockState state)
|
||||
|
||||
Reference in new issue
Block a user