Class CouplingHandler
java.lang.Object
com.simibubi.create.content.contraptions.minecart.CouplingHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidforEachLoadedCoupling(net.minecraft.world.level.Level world, Consumer<net.createmod.catnip.data.Couple<MinecartController>> consumer) static @Nullable MinecartControllergetNextInCouplingChain(net.minecraft.world.level.Level world, MinecartController controller, boolean forward) static voidpreventEntitiesFromMoutingOccupiedCart(net.neoforged.neoforge.event.entity.EntityMountEvent event) static voidstatic booleantryToCoupleCarts(@Nullable 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.neoforged.neoforge.event.entity.EntityMountEvent event) -
forEachLoadedCoupling
public static void forEachLoadedCoupling(net.minecraft.world.level.Level world, Consumer<net.createmod.catnip.data.Couple<MinecartController>> consumer) -
tryToCoupleCarts
public static boolean tryToCoupleCarts(@Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, int cartId1, int cartId2) -
getNextInCouplingChain
@Nullable public static @Nullable MinecartController getNextInCouplingChain(net.minecraft.world.level.Level world, MinecartController controller, boolean forward) -
status
-