mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-05 03:22:37 +01:00
Removed Unused Standard Bogey Instance
This commit is contained in:
parent
773e084422
commit
43523302c2
2 changed files with 1 additions and 27 deletions
|
@ -24,7 +24,7 @@ import net.minecraft.world.phys.Vec3;
|
|||
import java.util.EnumMap;
|
||||
import java.util.Map;
|
||||
|
||||
public abstract class BogeyInstance {
|
||||
public final class BogeyInstance {
|
||||
|
||||
public final CarriageBogey bogey;
|
||||
public final BogeyRenderer renderer;
|
||||
|
@ -39,8 +39,6 @@ public abstract class BogeyInstance {
|
|||
renderer.initialiseContraptionModelData(materialManager, size);
|
||||
}
|
||||
|
||||
public abstract BogeyInstanceFactory getInstanceFactory();
|
||||
|
||||
protected void hiddenFrame() {
|
||||
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 a new issue