java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.train.MinecartSim2020

public class MinecartSim2020 extends Object
Useful methods for dealing with Minecarts
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canAddMotion(net.minecraft.world.entity.vehicle.AbstractMinecart c)
     
    static net.minecraft.world.phys.Vec3
    getRailVec(net.minecraft.world.level.block.state.properties.RailShape shape)
     
    static void
    moveCartAlongTrack(net.minecraft.world.entity.vehicle.AbstractMinecart cart, net.minecraft.world.phys.Vec3 forcedMovement, net.minecraft.core.BlockPos cartPos, net.minecraft.world.level.block.state.BlockState trackState)
     
    static net.minecraft.world.phys.Vec3
    predictNextPositionOf(net.minecraft.world.entity.vehicle.AbstractMinecart cart)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MinecartSim2020

      public MinecartSim2020()
  • Method Details

    • predictNextPositionOf

      public static net.minecraft.world.phys.Vec3 predictNextPositionOf(net.minecraft.world.entity.vehicle.AbstractMinecart cart)
    • canAddMotion

      public static boolean canAddMotion(net.minecraft.world.entity.vehicle.AbstractMinecart c)
    • moveCartAlongTrack

      public static void moveCartAlongTrack(net.minecraft.world.entity.vehicle.AbstractMinecart cart, net.minecraft.world.phys.Vec3 forcedMovement, net.minecraft.core.BlockPos cartPos, net.minecraft.world.level.block.state.BlockState trackState)
    • getRailVec

      public static net.minecraft.world.phys.Vec3 getRailVec(net.minecraft.world.level.block.state.properties.RailShape shape)