Remove unused stuff

This commit is contained in:
Sebastian Hartte
2020-06-21 22:59:47 +02:00
parent e1131bd1e2
commit 00e794f03f
12 changed files with 70 additions and 825 deletions
@@ -18,33 +18,18 @@
package appeng.bootstrap;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import net.minecraft.client.renderer.color.IItemColor;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import appeng.bootstrap.components.ItemColorComponent;
import appeng.bootstrap.components.ItemVariantsComponent;
class ItemRendering implements IItemRendering {
@OnlyIn(Dist.CLIENT)
private IItemColor itemColor;
@OnlyIn(Dist.CLIENT)
private Set<ResourceLocation> variants = new HashSet<>();
@Override
public IItemRendering variants(Collection<ResourceLocation> resources) {
this.variants.addAll(resources);
return this;
}
@Override
@OnlyIn(Dist.CLIENT)
public IItemRendering color(IItemColor itemColor) {
@@ -53,12 +38,6 @@ class ItemRendering implements IItemRendering {
}
void apply(FeatureFactory factory, Item item) {
Set<ResourceLocation> resources = new HashSet<>(this.variants);
if (!resources.isEmpty()) {
factory.addBootstrapComponent(new ItemVariantsComponent(item, resources));
}
if (this.itemColor != null) {
factory.addBootstrapComponent(new ItemColorComponent(item, this.itemColor));
}