TaterzenScarpetEvent

open class TaterzenScarpetEvent : CarpetEventServer.Event

Constructors

TaterzenScarpetEvent
Link copied to clipboard
open fun TaterzenScarpetEvent(name: String, reqArgs: Int)

Functions

triggerCustomEvent
Link copied to clipboard
open fun triggerCustomEvent(@NotNull taterzen: @NotNull TaterzenNPC, traits: HashSet<Value>, args: Array<Any>)

Inherited functions

clearAllBuiltinEvents
Link copied to clipboard
open fun clearAllBuiltinEvents()
deprecated
Link copied to clipboard
open fun deprecated(): Boolean
getAllEvents
Link copied to clipboard
open fun getAllEvents(server: CarpetScriptServer, predicate: Predicate<CarpetEventServer.Event>): List<CarpetEventServer.Event>
getEntityHandlerEventName
Link copied to clipboard
open fun getEntityHandlerEventName(et: EntityType<out Entity>): String
getEntityLoadEventName
Link copied to clipboard
open fun getEntityLoadEventName(et: EntityType<out Entity>): String
getEvent
Link copied to clipboard
open fun getEvent(name: String, server: CarpetScriptServer): CarpetEventServer.Event
getOrCreateCustom
Link copied to clipboard
open fun getOrCreateCustom(name: String, server: CarpetScriptServer): CarpetEventServer.Event
handleAny
Link copied to clipboard
open fun handleAny(args: Array<Any>)
isNeeded
Link copied to clipboard
open fun isNeeded(): Boolean
onBlockAction
Link copied to clipboard
open fun onBlockAction(player: ServerPlayer, blockpos: BlockPos, facing: Direction): Boolean
onBlockBroken
Link copied to clipboard
open fun onBlockBroken(player: ServerPlayer, pos: BlockPos, previousBS: BlockState): Boolean
onBlockHit
Link copied to clipboard
open fun onBlockHit(player: ServerPlayer, enumhand: InteractionHand, hitRes: BlockHitResult): Boolean
onBlockPlaced
Link copied to clipboard
open fun onBlockPlaced(player: ServerPlayer, pos: BlockPos, enumhand: InteractionHand, itemstack: ItemStack): Boolean
onChunkEvent
Link copied to clipboard
open fun onChunkEvent(world: ServerLevel, chPos: ChunkPos, generated: Boolean)
onCustomPlayerEvent
Link copied to clipboard
open fun onCustomPlayerEvent(player: ServerPlayer, args: Array<Any>)
onCustomWorldEvent
Link copied to clipboard
open fun onCustomWorldEvent(world: ServerLevel, args: Array<Any>)
onDamage
Link copied to clipboard
open fun onDamage(target: Entity, amount: Float, source: DamageSource): Boolean
onDimensionChange
Link copied to clipboard
open fun onDimensionChange(player: ServerPlayer, from: Vec3, to: Vec3, fromDim: ResourceKey<Level>, dimTo: ResourceKey<Level>)
onEntityAction
Link copied to clipboard
open fun onEntityAction(entity: Entity, created: Boolean)
onEntityHandAction
Link copied to clipboard
open fun onEntityHandAction(player: ServerPlayer, entity: Entity, enumhand: InteractionHand): Boolean
onExplosion
Link copied to clipboard
open fun onExplosion(world: ServerLevel, e: Entity, attacker: Supplier<LivingEntity>, x: Double, y: Double, z: Double, power: Float, createFire: Boolean, affectedBlocks: List<BlockPos>, affectedEntities: List<Entity>, type: Explosion.BlockInteraction)
onHandAction
Link copied to clipboard
open fun onHandAction(player: ServerPlayer, enumhand: InteractionHand)
onItemAction
Link copied to clipboard
open fun onItemAction(player: ServerPlayer, enumhand: InteractionHand, itemstack: ItemStack): Boolean
onMountControls
Link copied to clipboard
open fun onMountControls(player: ServerPlayer, strafeSpeed: Float, forwardSpeed: Float, jumping: Boolean, sneaking: Boolean)
onPlayerEvent
Link copied to clipboard
open fun onPlayerEvent(player: ServerPlayer): Boolean
onPlayerMessage
Link copied to clipboard
open fun onPlayerMessage(player: ServerPlayer, message: String): Boolean
onPlayerStatistic
Link copied to clipboard
open fun onPlayerStatistic(player: ServerPlayer, stat: Stat<out Any>, amount: Int)
onRecipeSelected
Link copied to clipboard
open fun onRecipeSelected(player: ServerPlayer, recipe: ResourceLocation, fullStack: Boolean): Boolean
onSlotSwitch
Link copied to clipboard
open fun onSlotSwitch(player: ServerPlayer, from: Int, to: Int)
onTick
Link copied to clipboard
open fun onTick(server: MinecraftServer)
onTrade
Link copied to clipboard
open fun onTrade(player: ServerPlayer, merchant: Merchant, tradeOffer: MerchantOffer)
onWorldEvent
Link copied to clipboard
open fun onWorldEvent(world: ServerLevel, pos: BlockPos)
onWorldEventFlag
Link copied to clipboard
open fun onWorldEventFlag(world: ServerLevel, pos: BlockPos, flag: Int)
publicEvents
Link copied to clipboard
open fun publicEvents(server: CarpetScriptServer): List<CarpetEventServer.Event>
removeAllHostEvents
Link copied to clipboard
open fun removeAllHostEvents(host: CarpetScriptHost)
transferAllHostEventsToChild
Link copied to clipboard
open fun transferAllHostEventsToChild(host: CarpetScriptHost)