Class CouplingHandler
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.train.CouplingHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidforEachLoadedCoupling(net.minecraft.world.level.Level world, Consumer<Couple<MinecartController>> consumer) static MinecartControllergetNextInCouplingChain(net.minecraft.world.level.Level world, MinecartController controller, boolean forward) static voidpreventEntitiesFromMoutingOccupiedCart(net.minecraftforge.event.entity.EntityMountEvent event) static voidstatic booleantryToCoupleCarts(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, int cartId1, int cartId2)
-
Constructor Details
-
CouplingHandler
public CouplingHandler()
-
-
Method Details
-
preventEntitiesFromMoutingOccupiedCart
public static void preventEntitiesFromMoutingOccupiedCart(net.minecraftforge.event.entity.EntityMountEvent event) -
forEachLoadedCoupling
public static void forEachLoadedCoupling(net.minecraft.world.level.Level world, Consumer<Couple<MinecartController>> consumer) -
tryToCoupleCarts
public static boolean tryToCoupleCarts(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, int cartId1, int cartId2) -
getNextInCouplingChain
@Nullable public static MinecartController getNextInCouplingChain(net.minecraft.world.level.Level world, MinecartController controller, boolean forward) -
status
-