Interface ModHooksHelper
public interface ModHooksHelper
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.nbt.CompoundTaggetExtraEntityData(net.minecraft.world.entity.Entity entity) 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
-
isPlayerFake
boolean isPlayerFake(net.minecraft.server.level.ServerPlayer player) -
getExtraEntityData
net.minecraft.nbt.CompoundTag getExtraEntityData(net.minecraft.world.entity.Entity entity)
-