Custom Model Loader

This commit is contained in:
Sebastian Hartte
2020-06-01 04:02:37 +02:00
parent 077ff17078
commit 5cdeff01be
202 changed files with 942 additions and 1017 deletions
@@ -59,7 +59,7 @@ public class CachedPlane
private final List<TileEntity> tiles = new ArrayList<>();
private final List<NextTickListEntry> ticks = new ArrayList<>();
private final World world;
private final IMovableRegistry reg = AEApi.instance().registries().movable();
private final IMovableRegistry reg = Api.INSTANCE.registries().movable();
private final List<WorldCoord> updates = new ArrayList<>();
private int verticalBits;
private final BlockState matrixBlockState;
@@ -67,7 +67,7 @@ public class CachedPlane
public CachedPlane( final World w, final int minX, final int minY, final int minZ, final int maxX, final int maxY, final int maxZ )
{
Block matrixFrameBlock = AEApi.instance().definitions().blocks().matrixFrame().maybeBlock().orElse( null );
Block matrixFrameBlock = Api.INSTANCE.definitions().blocks().matrixFrame().maybeBlock().orElse( null );
if( matrixFrameBlock != null )
{
this.matrixBlockState = matrixFrameBlock.getDefaultState();
@@ -115,7 +115,7 @@ public class CachedPlane
}
}
final IMovableRegistry mr = AEApi.instance().registries().movable();
final IMovableRegistry mr = Api.INSTANCE.registries().movable();
for( int cx = 0; cx < this.cx_size; cx++ )
{
@@ -203,13 +203,13 @@ public class CachedPlane
private IMovableHandler getHandler( final TileEntity te )
{
final IMovableRegistry mr = AEApi.instance().registries().movable();
final IMovableRegistry mr = Api.INSTANCE.registries().movable();
return mr.getHandler( te );
}
void swap( final CachedPlane dst )
{
final IMovableRegistry mr = AEApi.instance().registries().movable();
final IMovableRegistry mr = Api.INSTANCE.registries().movable();
if( dst.x_size == this.x_size && dst.y_size == this.y_size && dst.z_size == this.z_size )
{
@@ -59,7 +59,7 @@ public class StorageChunkProvider extends ChunkGeneratorOverworld
biomes[k] = biomeId;
}
AEApi.instance().definitions().blocks().matrixFrame().maybeBlock().ifPresent( block -> this.fillChunk( chunk, block.getDefaultState() ) );
Api.INSTANCE.definitions().blocks().matrixFrame().maybeBlock().ifPresent( block -> this.fillChunk( chunk, block.getDefaultState() ) );
chunk.setModified( false );
@@ -161,7 +161,7 @@ public class StorageHelper
public void swapRegions( final World srcWorld, final int srcX, final int srcY, final int srcZ, final World dstWorld, final int dstX, final int dstY, final int dstZ, final int scaleX, final int scaleY, final int scaleZ )
{
AEApi.instance()
Api.INSTANCE
.definitions()
.blocks()
.matrixFrame()