Class FlyWheelInstance
java.lang.Object
com.jozufozu.flywheel.backend.instancing.AbstractInstance
com.jozufozu.flywheel.backend.instancing.tile.TileEntityInstance<T>
com.simibubi.create.content.contraptions.base.KineticTileInstance<FlywheelTileEntity>
com.simibubi.create.content.contraptions.components.flywheel.FlyWheelInstance
- All Implemented Interfaces:
com.jozufozu.flywheel.backend.instancing.IDynamicInstance,com.jozufozu.flywheel.backend.instancing.IInstance,com.jozufozu.flywheel.light.ILightUpdateListener
public class FlyWheelInstance
extends KineticTileInstance<FlywheelTileEntity>
implements com.jozufozu.flywheel.backend.instancing.IDynamicInstance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final net.minecraft.core.Directionprotected floatprotected List<com.jozufozu.flywheel.core.materials.model.ModelData>protected final net.minecraft.core.Directionprotected floatprotected com.jozufozu.flywheel.core.materials.model.ModelDataprotected com.jozufozu.flywheel.core.materials.model.ModelDataprotected final RotatingDataprotected com.jozufozu.flywheel.core.materials.model.ModelDataprotected com.jozufozu.flywheel.core.materials.model.ModelDataprotected final com.jozufozu.flywheel.core.materials.model.ModelDataFields inherited from class com.simibubi.create.content.contraptions.base.KineticTileInstance
axisFields inherited from class com.jozufozu.flywheel.backend.instancing.tile.TileEntityInstance
blockState, instancePos, pos, tileFields inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance
materialManager, world -
Constructor Summary
ConstructorsConstructorDescriptionFlyWheelInstance(com.jozufozu.flywheel.backend.material.MaterialManager modelManager, FlywheelTileEntity tile) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidremove()protected voidrotateToFacing(com.jozufozu.flywheel.util.transform.TransformStack buffer, net.minecraft.core.Direction facing) protected com.jozufozu.flywheel.backend.instancing.Instancer<RotatingData>protected voidtransformConnector(com.jozufozu.flywheel.util.transform.TransformStack ms, boolean upper, boolean rotating, float angle, boolean flip) voidupdate()voidMethods 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.tile.TileEntityInstance
getInstancePosition, getOrientedMaterial, getTransformMaterial, getVolume, getWorldPosition, shouldResetMethods inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance
init, onLightUpdate, 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.backend.instancing.IDynamicInstance
decreaseFramerateWithDistanceMethods inherited from interface com.jozufozu.flywheel.backend.instancing.IInstance
getWorldPositionMethods inherited from interface com.jozufozu.flywheel.light.ILightUpdateListener
onLightPacket
-
Field Details
-
facing
protected final net.minecraft.core.Direction facing -
connection
protected final net.minecraft.core.Direction connection -
connectedLeft
protected boolean connectedLeft -
connectorAngleMult
protected float connectorAngleMult -
shaft
-
wheel
protected final com.jozufozu.flywheel.core.materials.model.ModelData wheel -
connectors
-
upperRotating
protected com.jozufozu.flywheel.core.materials.model.ModelData upperRotating -
lowerRotating
protected com.jozufozu.flywheel.core.materials.model.ModelData lowerRotating -
upperSliding
protected com.jozufozu.flywheel.core.materials.model.ModelData upperSliding -
lowerSliding
protected com.jozufozu.flywheel.core.materials.model.ModelData lowerSliding -
lastAngle
protected float lastAngle
-
-
Constructor Details
-
FlyWheelInstance
public FlyWheelInstance(com.jozufozu.flywheel.backend.material.MaterialManager modelManager, FlywheelTileEntity tile)
-
-
Method Details
-
beginFrame
public void beginFrame()- Specified by:
beginFramein interfacecom.jozufozu.flywheel.backend.instancing.IDynamicInstance
-
update
public void update()- Overrides:
updatein classcom.jozufozu.flywheel.backend.instancing.AbstractInstance
-
updateLight
public void updateLight()- Overrides:
updateLightin classcom.jozufozu.flywheel.backend.instancing.AbstractInstance
-
remove
public void remove()- Specified by:
removein classcom.jozufozu.flywheel.backend.instancing.AbstractInstance
-
shaftModel
-
transformConnector
protected void transformConnector(com.jozufozu.flywheel.util.transform.TransformStack ms, boolean upper, boolean rotating, float angle, boolean flip) -
rotateToFacing
protected void rotateToFacing(com.jozufozu.flywheel.util.transform.TransformStack buffer, net.minecraft.core.Direction facing)
-