Class CanBeReplacedCallback
java.lang.Object
dev.latvian.mods.kubejs.block.callback.CanBeReplacedCallback
-
Constructor Summary
ConstructorsConstructorDescriptionCanBeReplacedCallback(net.minecraft.world.item.context.BlockPlaceContext blockPlaceContext, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleannet.minecraft.core.Directionnet.minecraft.core.BlockPosnet.minecraft.world.phys.Vec3net.minecraft.world.level.material.FluidStatenet.minecraft.world.InteractionHandgetHand()net.minecraft.core.Directionnet.minecraft.world.item.ItemStackgetItem()net.minecraft.world.level.LevelgetLevel()net.minecraft.core.Directionnet.minecraft.core.Direction[]net.minecraft.core.Direction@Nullable net.minecraft.world.entity.player.PlayerfloatbooleanisClickedPosIn(net.minecraft.world.level.material.Fluid fluid) booleanisInside()boolean
-
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
-
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()
-