Correct names for buildings
This commit is contained in:
@@ -15,7 +15,7 @@ public class DrawAnimation extends DrawBlock{
|
||||
public TextureRegion liquid, top;
|
||||
|
||||
@Override
|
||||
public void draw(GenericCrafterEntity entity){
|
||||
public void draw(GenericCrafterBuild entity){
|
||||
Draw.rect(entity.block.region, entity.x, entity.y);
|
||||
Draw.rect(
|
||||
sine ?
|
||||
|
||||
@@ -9,7 +9,7 @@ import mindustry.world.blocks.production.GenericCrafter.*;
|
||||
public class DrawBlock{
|
||||
|
||||
/** Draws the block. */
|
||||
public void draw(GenericCrafterEntity entity){
|
||||
public void draw(GenericCrafterBuild entity){
|
||||
Draw.rect(entity.block.region, entity.x, entity.y, entity.block.rotate ? entity.rotdeg() : 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ public class DrawGlow extends DrawBlock{
|
||||
public TextureRegion top;
|
||||
|
||||
@Override
|
||||
public void draw(GenericCrafterEntity entity){
|
||||
public void draw(GenericCrafterBuild entity){
|
||||
Draw.rect(entity.block.region, entity.x, entity.y);
|
||||
Draw.alpha(Mathf.absin(entity.totalProgress, glowScale, glowAmount) * entity.warmup);
|
||||
Draw.rect(top, entity.x, entity.y);
|
||||
|
||||
@@ -10,7 +10,7 @@ public class DrawMixer extends DrawBlock{
|
||||
public TextureRegion liquid, top, bottom;
|
||||
|
||||
@Override
|
||||
public void draw(GenericCrafterEntity entity){
|
||||
public void draw(GenericCrafterBuild entity){
|
||||
float rotation = entity.block.rotate ? entity.rotdeg() : 0;
|
||||
|
||||
Draw.rect(bottom, entity.x, entity.y, rotation);
|
||||
|
||||
@@ -9,7 +9,7 @@ public class DrawRotator extends DrawBlock{
|
||||
public TextureRegion rotator;
|
||||
|
||||
@Override
|
||||
public void draw(GenericCrafterEntity entity){
|
||||
public void draw(GenericCrafterBuild entity){
|
||||
Draw.rect(entity.block.region, entity.x, entity.y);
|
||||
Draw.rect(rotator, entity.x, entity.y, entity.totalProgress * 2f);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ public class DrawWeave extends DrawBlock{
|
||||
public TextureRegion weave, bottom;
|
||||
|
||||
@Override
|
||||
public void draw(GenericCrafterEntity entity){
|
||||
public void draw(GenericCrafterBuild entity){
|
||||
Draw.rect(bottom, entity.x, entity.y);
|
||||
Draw.rect(weave, entity.x, entity.y, entity.totalProgress);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user