mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 12:33:57 +01:00
Removed Unused Standard Bogey Instance
This commit is contained in:
parent
773e084422
commit
43523302c2
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user