mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 19:39:04 +07:00
tweaks
This commit is contained in:
parent
7acf53c509
commit
b99e18478f
Binary file not shown.
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 332 B |
Binary file not shown.
Before Width: | Height: | Size: 507 B After Width: | Height: | Size: 518 B |
@ -2,11 +2,9 @@ package mindustry.world.consumers;
|
||||
|
||||
import arc.func.*;
|
||||
import arc.scene.ui.layout.*;
|
||||
import arc.struct.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.ui.*;
|
||||
import mindustry.world.meta.*;
|
||||
|
||||
public class ConsumeItemDynamic extends Consume{
|
||||
public final Func<Building, ItemStack[]> items;
|
||||
@ -15,11 +13,6 @@ public class ConsumeItemDynamic extends Consume{
|
||||
this.items = (Func<Building, ItemStack[]>)items;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyItemFilter(Bits filter){
|
||||
//this must be done dynamically
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConsumeType type(){
|
||||
return ConsumeType.item;
|
||||
@ -52,16 +45,6 @@ public class ConsumeItemDynamic extends Consume{
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIcon(){
|
||||
return "icon-item";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(Building build){
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void trigger(Building build){
|
||||
for(ItemStack stack : items.get(build)){
|
||||
@ -73,9 +56,4 @@ public class ConsumeItemDynamic extends Consume{
|
||||
public boolean valid(Building build){
|
||||
return build.items != null && build.items.has(items.get(build));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void display(Stats stats){
|
||||
//should be handled by the block
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user