public class FlyWheelInstance extends KineticTileInstance<FlywheelTileEntity> implements com.jozufozu.flywheel.backend.instancing.IDynamicInstance
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
connectedLeft |
protected net.minecraft.util.Direction |
connection |
protected float |
connectorAngleMult |
protected java.util.List<com.jozufozu.flywheel.core.materials.ModelData> |
connectors |
protected net.minecraft.util.Direction |
facing |
protected float |
lastAngle |
protected com.jozufozu.flywheel.core.materials.ModelData |
lowerRotating |
protected com.jozufozu.flywheel.core.materials.ModelData |
lowerSliding |
protected RotatingData |
shaft |
protected com.jozufozu.flywheel.core.materials.ModelData |
upperRotating |
protected com.jozufozu.flywheel.core.materials.ModelData |
upperSliding |
protected com.jozufozu.flywheel.core.materials.ModelData |
wheel |
axis| Constructor and Description |
|---|
FlyWheelInstance(com.jozufozu.flywheel.backend.material.MaterialManager<?> modelManager,
FlywheelTileEntity tile) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginFrame() |
void |
remove() |
protected void |
rotateToFacing(com.jozufozu.flywheel.util.transform.MatrixTransformStack buffer,
net.minecraft.util.Direction facing) |
protected com.jozufozu.flywheel.backend.instancing.Instancer<RotatingData> |
shaftModel() |
protected void |
transformConnector(com.jozufozu.flywheel.util.transform.MatrixTransformStack ms,
boolean upper,
boolean rotating,
float angle,
boolean flip) |
void |
update() |
void |
updateLight() |
getRotatingMaterial, getRotationAxis, getRotationOffset, getTileSpeed, setup, setup, setup, setup, shaft, shaft, updateRotation, updateRotation, updateRotation, updateRotationgetInstancePosition, getOrientedMaterial, getTransformMaterial, getWorldPosition, relight, relight, relight, relight, shouldResetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final net.minecraft.util.Direction facing
protected final net.minecraft.util.Direction connection
protected boolean connectedLeft
protected float connectorAngleMult
protected final RotatingData shaft
protected final com.jozufozu.flywheel.core.materials.ModelData wheel
protected java.util.List<com.jozufozu.flywheel.core.materials.ModelData> connectors
protected com.jozufozu.flywheel.core.materials.ModelData upperRotating
protected com.jozufozu.flywheel.core.materials.ModelData lowerRotating
protected com.jozufozu.flywheel.core.materials.ModelData upperSliding
protected com.jozufozu.flywheel.core.materials.ModelData lowerSliding
protected float lastAngle
public FlyWheelInstance(com.jozufozu.flywheel.backend.material.MaterialManager<?> modelManager,
FlywheelTileEntity tile)
public void beginFrame()
beginFrame in interface com.jozufozu.flywheel.backend.instancing.IDynamicInstancepublic void update()
update in interface com.jozufozu.flywheel.backend.instancing.IInstanceupdate in class com.jozufozu.flywheel.backend.instancing.tile.TileEntityInstance<FlywheelTileEntity>public void updateLight()
updateLight in interface com.jozufozu.flywheel.backend.instancing.IInstanceupdateLight in class com.jozufozu.flywheel.backend.instancing.tile.TileEntityInstance<FlywheelTileEntity>public void remove()
remove in interface com.jozufozu.flywheel.backend.instancing.IInstanceremove in class com.jozufozu.flywheel.backend.instancing.tile.TileEntityInstance<FlywheelTileEntity>protected com.jozufozu.flywheel.backend.instancing.Instancer<RotatingData> shaftModel()
protected void transformConnector(com.jozufozu.flywheel.util.transform.MatrixTransformStack ms,
boolean upper,
boolean rotating,
float angle,
boolean flip)
protected void rotateToFacing(com.jozufozu.flywheel.util.transform.MatrixTransformStack buffer,
net.minecraft.util.Direction facing)