Class HighlightKubeEvent
java.lang.Object
dev.latvian.mods.kubejs.client.ClientPlayerKubeEvent
dev.latvian.mods.kubejs.client.highlight.HighlightKubeEvent
- All Implemented Interfaces:
ClientKubeEvent,KubeEntityEvent,KubeLivingEntityEvent,KubeEvent,KubeLevelEvent,KubePlayerEvent
@Info("Invoked when block and entity highlight is rendered.\n")
public class HighlightKubeEvent
extends ClientPlayerKubeEvent
-
Constructor Summary
ConstructorsConstructorDescriptionHighlightKubeEvent(net.minecraft.client.Minecraft mc, HighlightRenderer renderer) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddEntities(net.minecraft.commands.arguments.selector.EntitySelector selector, KubeColor color) voidaddEntitiesByType(net.minecraft.world.entity.EntityType<?> type, KubeColor color) voidvoidvoidaddTargetBlock(KubeColor color) voidaddTargetEntity(KubeColor color) net.minecraft.client.Minecraftnet.minecraft.world.entity.EntityMethods inherited from class dev.latvian.mods.kubejs.client.ClientPlayerKubeEvent
getEntity, getPlayerMethods 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
getLevelMethods 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
-
HighlightKubeEvent
-
-
Method Details
-
getClient
public net.minecraft.client.Minecraft getClient() -
addBlock
-
addBlocks
public void addBlocks(net.minecraft.core.BlockPos from, net.minecraft.core.BlockPos to, KubeColor color) -
addTargetBlock
-
addEntity
-
addEntities
public void addEntities(net.minecraft.commands.arguments.selector.EntitySelector selector, KubeColor color) -
addEntitiesByType
-
addTargetEntity
-
addTarget
-
getTargetBlock
-
getTargetEntity
public net.minecraft.world.entity.Entity getTargetEntity()
-