public class CouplingHandler
extends java.lang.Object
| Constructor and Description |
|---|
CouplingHandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
forEachLoadedCoupling(net.minecraft.world.World world,
java.util.function.Consumer<Couple<MinecartController>> consumer) |
static MinecartController |
getNextInCouplingChain(net.minecraft.world.World world,
MinecartController controller,
boolean forward) |
static void |
preventEntitiesFromMoutingOccupiedCart(net.minecraftforge.event.entity.EntityMountEvent event) |
static void |
status(net.minecraft.entity.player.PlayerEntity player,
java.lang.String key) |
static boolean |
tryToCoupleCarts(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.world.World world,
int cartId1,
int cartId2) |
public static void preventEntitiesFromMoutingOccupiedCart(net.minecraftforge.event.entity.EntityMountEvent event)
public static void forEachLoadedCoupling(net.minecraft.world.World world,
java.util.function.Consumer<Couple<MinecartController>> consumer)
public static boolean tryToCoupleCarts(@Nullable
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.world.World world,
int cartId1,
int cartId2)
@Nullable public static MinecartController getNextInCouplingChain(net.minecraft.world.World world, MinecartController controller, boolean forward)
public static void status(net.minecraft.entity.player.PlayerEntity player,
java.lang.String key)