Package dev.latvian.mods.kubejs.block
Class FarmlandTrampledKubeEvent
java.lang.Object
dev.latvian.mods.kubejs.block.FarmlandTrampledKubeEvent
- All Implemented Interfaces:
KubeEntityEvent,KubeEvent,KubeLevelEvent
@Info("Invoked when an entity attempts to trample farmland.\n")
public class FarmlandTrampledKubeEvent
extends Object
implements KubeEntityEvent
-
Constructor Summary
ConstructorsConstructorDescriptionFarmlandTrampledKubeEvent(net.neoforged.neoforge.event.level.BlockEvent.FarmlandTrampleEvent event) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.entity.KubeEntityEvent
getPlayerMethods inherited from interface dev.latvian.mods.kubejs.event.KubeEvent
afterPosted, cancel, cancel, defaultExitValue, exit, exit, getExitValueType, mapExitValue, success, successMethods inherited from interface dev.latvian.mods.kubejs.level.KubeLevelEvent
getRegistries, getServer
-
Constructor Details
-
FarmlandTrampledKubeEvent
public FarmlandTrampledKubeEvent(net.neoforged.neoforge.event.level.BlockEvent.FarmlandTrampleEvent event)
-
-
Method Details
-
getDistance
-
getEntity
@Info("The entity that is attempting to trample the farmland.") public net.minecraft.world.entity.Entity getEntity()- Specified by:
getEntityin interfaceKubeEntityEvent
-
getLevel
@Info("The level that the farmland and the entity are in.") public net.minecraft.world.level.Level getLevel()- Specified by:
getLevelin interfaceKubeEntityEvent- Specified by:
getLevelin interfaceKubeLevelEvent
-
getBlock
-