public final class VanillaHooks extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
callPlaceBlockEventAsPlayer(net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ)
Calls a PlaceBlockEvent as a Player.
|
static org.spongepowered.api.event.block.BreakBlockEvent |
prepareBreakBlockEventAsPlayer(net.minecraft.world.World world,
net.minecraft.world.WorldSettings.GameType gameType,
net.minecraft.entity.player.EntityPlayerMP entityPlayer,
net.minecraft.util.BlockPos pos,
net.minecraft.util.EnumFacing blockFacing)
Hook that prepares server logic for the firing of a
BreakBlockEvent . |
public static org.spongepowered.api.event.block.BreakBlockEvent prepareBreakBlockEventAsPlayer(net.minecraft.world.World world, net.minecraft.world.WorldSettings.GameType gameType, net.minecraft.entity.player.EntityPlayerMP entityPlayer, net.minecraft.util.BlockPos pos, net.minecraft.util.EnumFacing blockFacing)
BreakBlockEvent
.world
- The worldgameType
- The gametypeentityPlayer
- The playerpos
- The positionblockFacing
- The face of the blockpublic static boolean callPlaceBlockEventAsPlayer(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, net.minecraft.world.World world, net.minecraft.util.BlockPos pos, net.minecraft.util.EnumFacing side, float hitX, float hitY, float hitZ)
stack
- The stackplayer
- The playerworld
- The worldpos
- The positionside
- The side of the block being placed againsthitX
- The interaction point x valuehitY
- The interaction point y valuehitZ
- The interaction point z value