public abstract class MovementBehaviour
extends java.lang.Object
| Constructor and Description |
|---|
MovementBehaviour() |
| Modifier and Type | Method and Description |
|---|---|
ActorInstance |
createInstance(com.jozufozu.flywheel.backend.material.MaterialManager<?> materialManager,
PlacementSimulationWorld simulationWorld,
MovementContext context) |
void |
dropItem(MovementContext context,
net.minecraft.item.ItemStack stack) |
net.minecraft.util.math.vector.Vector3d |
getActiveAreaOffset(MovementContext context) |
boolean |
hasSpecialInstancedRendering() |
boolean |
isActive(MovementContext context) |
void |
onSpeedChanged(MovementContext context,
net.minecraft.util.math.vector.Vector3d oldMotion,
net.minecraft.util.math.vector.Vector3d motion) |
boolean |
renderAsNormalTileEntity() |
void |
renderInContraption(MovementContext context,
PlacementSimulationWorld renderWorld,
ContraptionMatrices matrices,
net.minecraft.client.renderer.IRenderTypeBuffer buffer) |
void |
startMoving(MovementContext context) |
void |
stopMoving(MovementContext context) |
void |
tick(MovementContext context) |
void |
visitNewPosition(MovementContext context,
net.minecraft.util.math.BlockPos pos) |
void |
writeExtraData(MovementContext context) |
public boolean isActive(MovementContext context)
public void tick(MovementContext context)
public void startMoving(MovementContext context)
public void visitNewPosition(MovementContext context, net.minecraft.util.math.BlockPos pos)
public net.minecraft.util.math.vector.Vector3d getActiveAreaOffset(MovementContext context)
public void dropItem(MovementContext context, net.minecraft.item.ItemStack stack)
public void stopMoving(MovementContext context)
public void writeExtraData(MovementContext context)
public boolean renderAsNormalTileEntity()
public boolean hasSpecialInstancedRendering()
public void renderInContraption(MovementContext context, PlacementSimulationWorld renderWorld, ContraptionMatrices matrices, net.minecraft.client.renderer.IRenderTypeBuffer buffer)
@Nullable public ActorInstance createInstance(com.jozufozu.flywheel.backend.material.MaterialManager<?> materialManager, PlacementSimulationWorld simulationWorld, MovementContext context)
public void onSpeedChanged(MovementContext context, net.minecraft.util.math.vector.Vector3d oldMotion, net.minecraft.util.math.vector.Vector3d motion)