Cleanup
This commit is contained in:
@@ -30,7 +30,7 @@ public class LiquidTurret extends Turret{
|
||||
}
|
||||
|
||||
/** Initializes accepted ammo map. Format: [liquid1, bullet1, liquid2, bullet2...] */
|
||||
protected void ammo(Object... objects){
|
||||
public void ammo(Object... objects){
|
||||
ammoTypes = OrderedMap.of(objects);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
package mindustry.world.blocks.environment;
|
||||
|
||||
import arc.*;
|
||||
import arc.graphics.g2d.*;
|
||||
import mindustry.annotations.Annotations.*;
|
||||
import mindustry.world.*;
|
||||
|
||||
public class AirBlock extends Floor{
|
||||
|
||||
public AirBlock(String name){
|
||||
super(name);
|
||||
alwaysReplace = true;
|
||||
hasShadow = false;
|
||||
useColor = false;
|
||||
wall = this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawBase(Tile tile){}
|
||||
|
||||
@OverrideCallSuper
|
||||
@Override
|
||||
public void load(){}
|
||||
|
||||
@OverrideCallSuper
|
||||
@Override
|
||||
public void init(){
|
||||
decoration = this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isHidden(){
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TextureRegion[] variantRegions(){
|
||||
if(variantRegions == null){
|
||||
variantRegions = new TextureRegion[]{Core.atlas.find("clear")};
|
||||
}
|
||||
return variantRegions;
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import arc.math.*;
|
||||
import mindustry.world.*;
|
||||
|
||||
public class Boulder extends Block{
|
||||
protected int variants;
|
||||
public int variants;
|
||||
|
||||
public Boulder(String name){
|
||||
super(name);
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package mindustry.world.blocks.environment;
|
||||
|
||||
import mindustry.world.*;
|
||||
|
||||
public class SpawnBlock extends OverlayFloor{
|
||||
|
||||
public SpawnBlock(String name){
|
||||
super(name);
|
||||
variants = 0;
|
||||
needsSurface = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawBase(Tile tile){}
|
||||
}
|
||||
Reference in New Issue
Block a user