Class AbstractPulleyInstance
java.lang.Object
com.jozufozu.flywheel.backend.instancing.AbstractInstance
com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance<T>
com.simibubi.create.content.contraptions.base.KineticTileInstance<KineticTileEntity>
com.simibubi.create.content.contraptions.base.SingleRotatingInstance
com.simibubi.create.content.contraptions.relays.encased.ShaftInstance
com.simibubi.create.content.contraptions.components.structureMovement.pulley.AbstractPulleyInstance
- All Implemented Interfaces:
com.jozufozu.flywheel.api.instance.DynamicInstance,com.jozufozu.flywheel.api.instance.Instance,com.jozufozu.flywheel.light.LightListener,com.jozufozu.flywheel.light.MovingListener
- Direct Known Subclasses:
HosePulleyInstance,RopePulleyInstance
public abstract class AbstractPulleyInstance
extends ShaftInstance
implements com.jozufozu.flywheel.api.instance.DynamicInstance, com.jozufozu.flywheel.light.MovingListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected final net.minecraft.core.Directionprotected final com.mojang.math.Vector3fFields inherited from class com.simibubi.create.content.contraptions.base.SingleRotatingInstance
rotatingModelFields inherited from class com.simibubi.create.content.contraptions.base.KineticTileInstance
axisFields inherited from class com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance
blockEntity, blockState, instancePos, posFields inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance
materialManager, world -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPulleyInstance(com.jozufozu.flywheel.api.MaterialManager dispatcher, KineticTileEntity tile) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanprotected abstract com.jozufozu.flywheel.api.Instancer<com.jozufozu.flywheel.core.materials.oriented.OrientedData>protected abstract com.jozufozu.flywheel.api.Instancer<com.jozufozu.flywheel.core.materials.oriented.OrientedData>protected abstract com.jozufozu.flywheel.api.Instancer<com.jozufozu.flywheel.core.materials.oriented.OrientedData>protected abstract com.jozufozu.flywheel.api.Instancer<com.jozufozu.flywheel.core.materials.oriented.OrientedData>protected abstract floatprotected abstract com.jozufozu.flywheel.api.Instancer<com.jozufozu.flywheel.core.materials.oriented.OrientedData>com.jozufozu.flywheel.util.box.ImmutableBoxprotected abstract booleanvoidonLightUpdate(com.jozufozu.flywheel.light.LightProvider world, net.minecraft.world.level.LightLayer type, com.jozufozu.flywheel.util.box.ImmutableBox changed) voidremove()booleanupdate(com.jozufozu.flywheel.light.LightProvider provider) voidMethods inherited from class com.simibubi.create.content.contraptions.relays.encased.ShaftInstance
getRenderedBlockStateMethods inherited from class com.simibubi.create.content.contraptions.base.SingleRotatingInstance
getModel, init, updateMethods inherited from class com.simibubi.create.content.contraptions.base.KineticTileInstance
getRotatingMaterial, getRotationAxis, getRotationOffset, getTileSpeed, setup, setup, setup, setup, shaft, shaft, updateRotation, updateRotation, updateRotation, updateRotationMethods inherited from class com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance
getInstancePosition, getOrientedMaterial, getTransformMaterial, getWorldPosition, shouldResetMethods inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance
relight, relight, relight, relight, statusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.api.instance.Instance
getWorldPositionMethods inherited from interface com.jozufozu.flywheel.light.LightListener
onLightPacket, status
-
Field Details
-
offset
protected float offset -
rotatingAbout
protected final net.minecraft.core.Direction rotatingAbout -
rotationAxis
protected final com.mojang.math.Vector3f rotationAxis
-
-
Constructor Details
-
AbstractPulleyInstance
public AbstractPulleyInstance(com.jozufozu.flywheel.api.MaterialManager dispatcher, KineticTileEntity tile)
-
-
Method Details
-
beginFrame
public void beginFrame()- Specified by:
beginFramein interfacecom.jozufozu.flywheel.api.instance.DynamicInstance
-
updateLight
public void updateLight()- Overrides:
updateLightin classSingleRotatingInstance
-
remove
public void remove()- Overrides:
removein classSingleRotatingInstance
-
getRopeModel
protected abstract com.jozufozu.flywheel.api.Instancer<com.jozufozu.flywheel.core.materials.oriented.OrientedData> getRopeModel() -
getMagnetModel
protected abstract com.jozufozu.flywheel.api.Instancer<com.jozufozu.flywheel.core.materials.oriented.OrientedData> getMagnetModel() -
getHalfMagnetModel
protected abstract com.jozufozu.flywheel.api.Instancer<com.jozufozu.flywheel.core.materials.oriented.OrientedData> getHalfMagnetModel() -
getCoilModel
protected abstract com.jozufozu.flywheel.api.Instancer<com.jozufozu.flywheel.core.materials.oriented.OrientedData> getCoilModel() -
getHalfRopeModel
protected abstract com.jozufozu.flywheel.api.Instancer<com.jozufozu.flywheel.core.materials.oriented.OrientedData> getHalfRopeModel() -
getOffset
protected abstract float getOffset() -
isRunning
protected abstract boolean isRunning() -
update
public boolean update(com.jozufozu.flywheel.light.LightProvider provider) - Specified by:
updatein interfacecom.jozufozu.flywheel.light.MovingListener
-
decreaseFramerateWithDistance
public boolean decreaseFramerateWithDistance()- Specified by:
decreaseFramerateWithDistancein interfacecom.jozufozu.flywheel.api.instance.DynamicInstance
-
getVolume
public com.jozufozu.flywheel.util.box.ImmutableBox getVolume()- Specified by:
getVolumein interfacecom.jozufozu.flywheel.light.LightListener- Overrides:
getVolumein classcom.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance<KineticTileEntity>
-
onLightUpdate
public void onLightUpdate(com.jozufozu.flywheel.light.LightProvider world, net.minecraft.world.level.LightLayer type, com.jozufozu.flywheel.util.box.ImmutableBox changed) - Specified by:
onLightUpdatein interfacecom.jozufozu.flywheel.light.LightListener- Overrides:
onLightUpdatein classcom.jozufozu.flywheel.backend.instancing.AbstractInstance
-