public class MCPlayerFillBucketEvent
extends java.lang.Object
implements crafttweaker.api.event.PlayerFillBucketEvent
Constructor and Description |
---|
MCPlayerFillBucketEvent(net.minecraftforge.event.entity.player.FillBucketEvent ev) |
Modifier and Type | Method and Description |
---|---|
crafttweaker.api.block.IBlock |
getBlock() |
crafttweaker.api.block.IBlockState |
getBlockState() |
int |
getDimension() |
crafttweaker.api.item.IItemStack |
getEmptyBucket() |
crafttweaker.api.player.IPlayer |
getPlayer() |
crafttweaker.api.world.IBlockPos |
getPosition() |
crafttweaker.api.world.IRayTraceResult |
getRayTraceResult() |
crafttweaker.api.item.IItemStack |
getResult() |
crafttweaker.api.world.IWorld |
getWorld() |
boolean |
isCanceled() |
boolean |
isProcessed() |
void |
process() |
void |
setCanceled(boolean canceled) |
void |
setResult(crafttweaker.api.item.IItemStack result)
Sets the resulting item.
|
public MCPlayerFillBucketEvent(net.minecraftforge.event.entity.player.FillBucketEvent ev)
public crafttweaker.api.item.IItemStack getResult()
getResult
in interface crafttweaker.api.event.PlayerFillBucketEvent
public void setResult(crafttweaker.api.item.IItemStack result)
setResult
in interface crafttweaker.api.event.PlayerFillBucketEvent
result
- resulting itempublic crafttweaker.api.item.IItemStack getEmptyBucket()
getEmptyBucket
in interface crafttweaker.api.event.PlayerFillBucketEvent
public crafttweaker.api.world.IWorld getWorld()
getWorld
in interface crafttweaker.api.event.PlayerFillBucketEvent
public crafttweaker.api.block.IBlock getBlock()
getBlock
in interface crafttweaker.api.event.PlayerFillBucketEvent
public crafttweaker.api.block.IBlockState getBlockState()
getBlockState
in interface crafttweaker.api.event.PlayerFillBucketEvent
public int getDimension()
getDimension
in interface crafttweaker.api.event.PlayerFillBucketEvent
public crafttweaker.api.world.IBlockPos getPosition()
getPosition
in interface crafttweaker.api.event.IEventPositionable
public crafttweaker.api.world.IRayTraceResult getRayTraceResult()
getRayTraceResult
in interface crafttweaker.api.event.PlayerFillBucketEvent
public boolean isCanceled()
isCanceled
in interface crafttweaker.api.event.IEventCancelable
public void setCanceled(boolean canceled)
setCanceled
in interface crafttweaker.api.event.IEventCancelable
public void process()
process
in interface crafttweaker.api.event.IProcessableEvent
public boolean isProcessed()
isProcessed
in interface crafttweaker.api.event.IProcessableEvent
public crafttweaker.api.player.IPlayer getPlayer()
getPlayer
in interface crafttweaker.api.event.IPlayerEvent