Add in region to payload block icons (#4052)
|
Before Width: | Height: | Size: 675 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 4.3 KiB |
@@ -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();
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||