Add in region to payload block icons (#4052)

This commit is contained in:
Patrick 'Quezler' Mounier
2020-12-20 15:58:18 +01:00
committed by GitHub
parent c39f4c1b7d
commit 22221a0f28
7 changed files with 13 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 675 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@@ -37,6 +37,11 @@ public class BlockForge extends PayloadAcceptor{
consumes.add(new ConsumeItemDynamic((BlockForgeBuild e) -> e.recipe != null ? e.recipe.requirements : ItemStack.empty)); consumes.add(new ConsumeItemDynamic((BlockForgeBuild e) -> e.recipe != null ? e.recipe.requirements : ItemStack.empty));
} }
@Override
public TextureRegion[] icons(){
return new TextureRegion[]{region, outRegion};
}
@Override @Override
public void setBars(){ public void setBars(){
super.setBars(); super.setBars();

View File

@@ -31,6 +31,11 @@ public class BlockLoader extends PayloadAcceptor{
rotate = true; rotate = true;
} }
@Override
public TextureRegion[] icons(){
return new TextureRegion[]{region, inRegion, outRegion, topRegion};
}
@Override @Override
public boolean outputsItems(){ public boolean outputsItems(){
return false; return false;
@@ -72,7 +77,7 @@ public class BlockLoader extends PayloadAcceptor{
//draw input //draw input
for(int i = 0; i < 4; i++){ for(int i = 0; i < 4; i++){
if(blends(i) && i != rotation){ if(blends(i) && i != rotation){
Draw.rect(inRegion, x, y, i * 90); Draw.rect(inRegion, x, y, (i * 90) - 180);
} }
} }

View File

@@ -39,7 +39,7 @@ public class Reconstructor extends UnitBlock{
@Override @Override
public TextureRegion[] icons(){ public TextureRegion[] icons(){
return new TextureRegion[]{region, outRegion, topRegion}; return new TextureRegion[]{region, inRegion, outRegion, topRegion};
} }
@Override @Override
@@ -129,7 +129,7 @@ public class Reconstructor extends UnitBlock{
//draw input //draw input
for(int i = 0; i < 4; i++){ for(int i = 0; i < 4; i++){
if(blends(i) && i != rotation){ if(blends(i) && i != rotation){
Draw.rect(inRegion, x, y, i * 90); Draw.rect(inRegion, x, y, (i * 90) - 180);
} }
} }