Package tschipp.carryon.common.carry
Class PlacementHandler
java.lang.Object
tschipp.carryon.common.carry.PlacementHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidplaceCarried(net.minecraft.server.level.ServerPlayer player) static voidplaceCarriedOnDeath(net.minecraft.server.level.ServerPlayer oldPlayer, net.minecraft.server.level.ServerPlayer newPlayer, boolean died) static booleantryPlaceBlock(net.minecraft.server.level.ServerPlayer player, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction facing, BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, Boolean> placementCallback) static booleantryPlaceEntity(net.minecraft.server.level.ServerPlayer player, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction facing, BiFunction<net.minecraft.world.phys.Vec3, net.minecraft.world.entity.Entity, Boolean> placementCallback) static voidtryStackEntity(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.entity.Entity entityClicked)
-
Constructor Details
-
PlacementHandler
public PlacementHandler()
-
-
Method Details
-
tryPlaceBlock
public static boolean tryPlaceBlock(net.minecraft.server.level.ServerPlayer player, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction facing, @Nullable BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, Boolean> placementCallback) -
tryPlaceEntity
public static boolean tryPlaceEntity(net.minecraft.server.level.ServerPlayer player, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction facing, @Nullable BiFunction<net.minecraft.world.phys.Vec3, net.minecraft.world.entity.Entity, Boolean> placementCallback) -
tryStackEntity
public static void tryStackEntity(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.entity.Entity entityClicked) -
placeCarriedOnDeath
public static void placeCarriedOnDeath(net.minecraft.server.level.ServerPlayer oldPlayer, net.minecraft.server.level.ServerPlayer newPlayer, boolean died) -
placeCarried
public static void placeCarried(net.minecraft.server.level.ServerPlayer player)
-