类 CropGrowEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.BlockEvent
net.neoforged.neoforge.event.level.block.CropGrowEvent
net.neoforged.neoforge.event.level.block.CropGrowEvent.Pre
- 封闭类:
CropGrowEvent
Fired when any "growing age" blocks (for example cacti, chorus plants, or crops
in vanilla) attempt to advance to the next growth age state during a random tick.
This event is only fired on the logical server.
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.neoforged.neoforge.event.level.block.CropGrowEvent
CropGrowEvent.Post, CropGrowEvent.Pre
从类继承的嵌套类/接口 net.neoforged.neoforge.event.level.BlockEvent
BlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明返回 the result of this event, which controls if the click will be treated as handled。void
setResult
(CropGrowEvent.Pre.Result result) Changes the result of this event.从类继承的方法 net.neoforged.neoforge.event.level.BlockEvent
getLevel, getPos, getState
-
字段详细资料
-
result
-
-
构造器详细资料
-
Pre
-
-
方法详细资料
-
setResult
Changes the result of this event. -
getResult
返回 the result of this event, which controls if the click will be treated as handled。- 返回:
- the result of this event, which controls if the click will be treated as handled
-