Removed Unused Standard Bogey Instance

This commit is contained in:
Rabbitminers 2023-04-02 16:45:33 +01:00
parent 773e084422
commit 43523302c2
2 changed files with 1 additions and 27 deletions

View File

@ -24,7 +24,7 @@ import net.minecraft.world.phys.Vec3;
import java.util.EnumMap; import java.util.EnumMap;
import java.util.Map; import java.util.Map;
public abstract class BogeyInstance { public final class BogeyInstance {
public final CarriageBogey bogey; public final CarriageBogey bogey;
public final BogeyRenderer renderer; public final BogeyRenderer renderer;
@ -39,8 +39,6 @@ public abstract class BogeyInstance {
renderer.initialiseContraptionModelData(materialManager, size); renderer.initialiseContraptionModelData(materialManager, size);
} }
public abstract BogeyInstanceFactory getInstanceFactory();
protected void hiddenFrame() { protected void hiddenFrame() {
beginFrame(0, null); beginFrame(0, null);
} }

View File

@ -1,24 +0,0 @@
package com.simibubi.create.content.logistics.trains.entity;
import com.jozufozu.flywheel.api.MaterialManager;
import com.simibubi.create.content.logistics.trains.BogeyRenderer;
import com.simibubi.create.content.logistics.trains.StandardBogeyRenderer;
public class StandardBogeyInstance extends BogeyInstance {
public StandardBogeyInstance(CarriageBogey bogey, BogeyRenderer.BogeySize bogeySize, MaterialManager materialManager) {
super(bogey, new StandardBogeyRenderer(), bogeySize, materialManager);
}
public static StandardBogeyInstance drive(CarriageBogey bogey, MaterialManager materialManager) {
return new StandardBogeyInstance(bogey, BogeyRenderer.BogeySize.LARGE, materialManager);
}
public static StandardBogeyInstance frame(CarriageBogey bogey, MaterialManager materialManager) {
return new StandardBogeyInstance(bogey, BogeyRenderer.BogeySize.SMALL, materialManager);
}
public static BogeyInstanceFactory getInstanceFactory() {
return StandardBogeyInstance::new;
}
}