Interface ModHooksHelper
- All Known Implementing Classes:
FabricHooksHelper
public interface ModHooksHelper
-
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.world.item.ItemStackgetCloneItemFromBlockstate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.HitResult target, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) booleanisPlayerFake(net.minecraft.server.level.ServerPlayer player) booleanplayerPlaceSingleBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState) Attempts to place a single Block as a Player, and should fire according events
-
Method Details
-
playerPlaceSingleBlock
boolean playerPlaceSingleBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState) Attempts to place a single Block as a Player, and should fire according events- Returns:
- True if the event got canceled or the Block was not be placed, False otherwise
-
getCloneItemFromBlockstate
default net.minecraft.world.item.ItemStack getCloneItemFromBlockstate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.HitResult target, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) -
isPlayerFake
boolean isPlayerFake(net.minecraft.server.level.ServerPlayer player)
-