mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-11 04:54:12 +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;
|
||||
|
||||
import com.simibubi.create.content.contraptions.components.structureMovement.Contraption;
|
||||
import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionLighter;
|
||||
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);
|
||||
}
|
||||
|
@ -97,6 +97,6 @@ public class BearingContraption extends Contraption {
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
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.Set;
|
||||
|
||||
import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionLighter;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
|
||||
import com.simibubi.create.content.contraptions.components.structureMovement.AssemblyException;
|
||||
@ -129,4 +130,8 @@ public class ClockworkContraption extends Contraption {
|
||||
HOUR, MINUTE
|
||||
}
|
||||
|
||||
@Override
|
||||
public ContraptionLighter<?> makeLighter() {
|
||||
return new AnchoredLighter(this);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user