GUI Rendering and various fixes
This commit is contained in:
@@ -160,7 +160,7 @@ public class ApiStorage implements IStorageHelper
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAEItemStack readFromPacket( PacketBuffer input ) throws IOException
|
||||
public IAEItemStack readFromPacket( PacketBuffer input )
|
||||
{
|
||||
Preconditions.checkNotNull( input );
|
||||
|
||||
@@ -215,7 +215,7 @@ public class ApiStorage implements IStorageHelper
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAEFluidStack readFromPacket( PacketBuffer input ) throws IOException
|
||||
public IAEFluidStack readFromPacket( PacketBuffer input )
|
||||
{
|
||||
Preconditions.checkNotNull( input );
|
||||
|
||||
|
||||
@@ -112,7 +112,6 @@ public final class ApiItems implements IItems
|
||||
private final IItemDefinition encodedPattern;
|
||||
private final IItemDefinition colorApplicator;
|
||||
|
||||
private final IItemDefinition paintBall;
|
||||
private final AEColoredItemDefinition coloredPaintBall;
|
||||
private final AEColoredItemDefinition coloredLumenPaintBall;
|
||||
|
||||
@@ -296,12 +295,13 @@ public final class ApiItems implements IItems
|
||||
.rendering( new ItemEncodedPatternRendering() )
|
||||
.build();
|
||||
|
||||
this.paintBall = registry.item( "paint_ball", ItemPaintBall::new )
|
||||
IItemDefinition paintBall = registry.item( "paint_ball", ItemPaintBall::new )
|
||||
.features( AEFeature.PAINT_BALLS )
|
||||
.rendering( new ItemPaintBallRendering() )
|
||||
.build();
|
||||
this.coloredPaintBall = registry.colored( this.paintBall, 0 );
|
||||
this.coloredLumenPaintBall = registry.colored( this.paintBall, 20 );
|
||||
// FIXME these are both wrong
|
||||
this.coloredPaintBall = registry.colored( paintBall, 0 );
|
||||
this.coloredLumenPaintBall = registry.colored( paintBall, 20 );
|
||||
|
||||
FeatureFactory debugTools = registry.features( AEFeature.UNSUPPORTED_DEVELOPER_TOOLS, AEFeature.CREATIVE );
|
||||
this.toolEraser = debugTools.item( "debug_eraser", ToolEraser::new ).build();
|
||||
@@ -567,11 +567,6 @@ public final class ApiItems implements IItems
|
||||
return this.coloredLumenPaintBall;
|
||||
}
|
||||
|
||||
public IItemDefinition paintBall()
|
||||
{
|
||||
return this.paintBall;
|
||||
}
|
||||
|
||||
public IItemDefinition toolEraser()
|
||||
{
|
||||
return this.toolEraser;
|
||||
|
||||
Reference in New Issue
Block a user