Class CanBeReplacedCallback

java.lang.Object
dev.latvian.mods.kubejs.block.callback.CanBeReplacedCallback

public class CanBeReplacedCallback extends Object
  • Constructor Details

    • CanBeReplacedCallback

      public CanBeReplacedCallback(net.minecraft.world.item.context.BlockPlaceContext blockPlaceContext, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • getClickedPos

      public net.minecraft.core.BlockPos getClickedPos()
    • getClickedBlock

      public LevelBlock getClickedBlock()
    • getNearestLookingDirection

      public net.minecraft.core.Direction getNearestLookingDirection()
    • getNearestLookingVerticalDirection

      public net.minecraft.core.Direction getNearestLookingVerticalDirection()
    • getNearestLookingDirections

      public net.minecraft.core.Direction[] getNearestLookingDirections()
    • getClickedFace

      public net.minecraft.core.Direction getClickedFace()
    • getClickLocation

      public net.minecraft.world.phys.Vec3 getClickLocation()
    • isInside

      public boolean isInside()
    • getItem

      public net.minecraft.world.item.ItemStack getItem()
    • getPlayer

      @Nullable public @Nullable net.minecraft.world.entity.player.Player getPlayer()
    • getHand

      public net.minecraft.world.InteractionHand getHand()
    • getLevel

      public net.minecraft.world.level.Level getLevel()
    • getHorizontalDirection

      public net.minecraft.core.Direction getHorizontalDirection()
    • isSecondaryUseActive

      public boolean isSecondaryUseActive()
    • getRotation

      public float getRotation()
    • getFluidStateAtClickedPos

      public net.minecraft.world.level.material.FluidState getFluidStateAtClickedPos()
    • isClickedPosIn

      public boolean isClickedPosIn(net.minecraft.world.level.material.Fluid fluid)
    • canBeReplaced

      public boolean canBeReplaced()