mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-13 05:54:01 +01:00
Clocks are lit.
- ClockworkContraptions and BearingContraptions now both use the same lighter type.
This commit is contained in:
parent
c73e3166cb
commit
ea90196250
@ -1,11 +1,12 @@
|
|||||||
package com.simibubi.create.content.contraptions.components.structureMovement.bearing;
|
package com.simibubi.create.content.contraptions.components.structureMovement.bearing;
|
||||||
|
|
||||||
|
import com.simibubi.create.content.contraptions.components.structureMovement.Contraption;
|
||||||
import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionLighter;
|
import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionLighter;
|
||||||
import com.simibubi.create.foundation.render.backend.light.GridAlignedBB;
|
import com.simibubi.create.foundation.render.backend.light.GridAlignedBB;
|
||||||
|
|
||||||
public class BearingLighter extends ContraptionLighter<BearingContraption> {
|
public class AnchoredLighter extends ContraptionLighter<Contraption> {
|
||||||
|
|
||||||
public BearingLighter(BearingContraption contraption) {
|
public AnchoredLighter(Contraption contraption) {
|
||||||
super(contraption);
|
super(contraption);
|
||||||
}
|
}
|
||||||
|
|
@ -97,6 +97,6 @@ public class BearingContraption extends Contraption {
|
|||||||
@OnlyIn(Dist.CLIENT)
|
@OnlyIn(Dist.CLIENT)
|
||||||
@Override
|
@Override
|
||||||
public ContraptionLighter<?> makeLighter() {
|
public ContraptionLighter<?> makeLighter() {
|
||||||
return new BearingLighter(this);
|
return new AnchoredLighter(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import java.util.HashSet;
|
|||||||
import java.util.Queue;
|
import java.util.Queue;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionLighter;
|
||||||
import org.apache.commons.lang3.tuple.Pair;
|
import org.apache.commons.lang3.tuple.Pair;
|
||||||
|
|
||||||
import com.simibubi.create.content.contraptions.components.structureMovement.AssemblyException;
|
import com.simibubi.create.content.contraptions.components.structureMovement.AssemblyException;
|
||||||
@ -129,4 +130,8 @@ public class ClockworkContraption extends Contraption {
|
|||||||
HOUR, MINUTE
|
HOUR, MINUTE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ContraptionLighter<?> makeLighter() {
|
||||||
|
return new AnchoredLighter(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user