Package dev.latvian.mods.kubejs.server
Class BasicCommandKubeEvent
java.lang.Object
dev.latvian.mods.kubejs.server.BasicCommandKubeEvent
- All Implemented Interfaces:
KubeEntityEvent,KubeEvent,KubeLevelEvent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasicCommandKubeEvent(net.minecraft.commands.CommandSourceStack source, String id, String input) -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()@Nullable net.minecraft.world.entity.EntitygetId()net.minecraft.world.level.LevelgetLevel()@Nullable net.minecraft.server.level.ServerPlayervoidrespond(net.minecraft.network.chat.Component text) voidrespondLazily(Supplier<net.minecraft.network.chat.Component> text, boolean informAdmins) 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.event.KubeEvent
afterPosted, cancel, cancel, defaultExitValue, exit, exit, getExitValueType, mapExitValue, success, successMethods inherited from interface dev.latvian.mods.kubejs.level.KubeLevelEvent
getRegistries, getServer
-
Field Details
-
id
-
input
-
-
Constructor Details
-
BasicCommandKubeEvent
-
-
Method Details
-
getId
-
getLevel
public net.minecraft.world.level.Level getLevel()- Specified by:
getLevelin interfaceKubeEntityEvent- Specified by:
getLevelin interfaceKubeLevelEvent
-
getEntity
@Nullable public @Nullable net.minecraft.world.entity.Entity getEntity()- Specified by:
getEntityin interfaceKubeEntityEvent
-
getPlayer
@Nullable public @Nullable net.minecraft.server.level.ServerPlayer getPlayer()- Specified by:
getPlayerin interfaceKubeEntityEvent
-
getBlock
-
respondLazily
public void respondLazily(Supplier<net.minecraft.network.chat.Component> text, boolean informAdmins) -
respond
public void respond(net.minecraft.network.chat.Component text)
-