Class PlacementHandler

java.lang.Object
tschipp.carryon.common.carry.PlacementHandler

public class PlacementHandler extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    placeCarried(net.minecraft.server.level.ServerPlayer player)
     
    static void
    placeCarriedOnDeath(net.minecraft.server.level.ServerPlayer oldPlayer, net.minecraft.server.level.ServerPlayer newPlayer, boolean died)
     
    static boolean
    tryPlaceBlock(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 boolean
    tryPlaceEntity(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 void
    tryStackEntity(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.entity.Entity entityClicked)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)