TaterzenScarpetEvent
Constructors
TaterzenScarpetEvent
Link copied to clipboard
Functions
triggerCustomEvent
Link copied to clipboard
open fun triggerCustomEvent(@NotNull taterzen: @NotNull TaterzenNPC, traits: HashSet<Value>, args: Array<Any>)
Content copied to clipboard
Inherited functions
clearAllBuiltinEvents
Link copied to clipboard
open fun clearAllBuiltinEvents()
Content copied to clipboard
deprecated
Link copied to clipboard
getAllEvents
Link copied to clipboard
open fun getAllEvents(server: CarpetScriptServer, predicate: Predicate<CarpetEventServer.Event>): List<CarpetEventServer.Event>
Content copied to clipboard
getEntityHandlerEventName
Link copied to clipboard
getEntityLoadEventName
Link copied to clipboard
getOrCreateCustom
Link copied to clipboard
open fun getOrCreateCustom(name: String, server: CarpetScriptServer): CarpetEventServer.Event
Content copied to clipboard
onBlockAction
Link copied to clipboard
open fun onBlockAction(player: ServerPlayer, blockpos: BlockPos, facing: Direction): Boolean
Content copied to clipboard
onBlockBroken
Link copied to clipboard
open fun onBlockBroken(player: ServerPlayer, pos: BlockPos, previousBS: BlockState): Boolean
Content copied to clipboard
onBlockHit
Link copied to clipboard
open fun onBlockHit(player: ServerPlayer, enumhand: InteractionHand, hitRes: BlockHitResult): Boolean
Content copied to clipboard
onBlockPlaced
Link copied to clipboard
open fun onBlockPlaced(player: ServerPlayer, pos: BlockPos, enumhand: InteractionHand, itemstack: ItemStack): Boolean
Content copied to clipboard
onChunkEvent
Link copied to clipboard
open fun onChunkEvent(world: ServerLevel, chPos: ChunkPos, generated: Boolean)
Content copied to clipboard
onCustomPlayerEvent
Link copied to clipboard
onCustomWorldEvent
Link copied to clipboard
onDimensionChange
Link copied to clipboard
open fun onDimensionChange(player: ServerPlayer, from: Vec3, to: Vec3, fromDim: ResourceKey<Level>, dimTo: ResourceKey<Level>)
Content copied to clipboard
onEntityAction
Link copied to clipboard
onEntityHandAction
Link copied to clipboard
open fun onEntityHandAction(player: ServerPlayer, entity: Entity, enumhand: InteractionHand): Boolean
Content copied to clipboard
onExplosion
Link copied to clipboard
onHandAction
Link copied to clipboard
onItemAction
Link copied to clipboard
open fun onItemAction(player: ServerPlayer, enumhand: InteractionHand, itemstack: ItemStack): Boolean
Content copied to clipboard
onMountControls
Link copied to clipboard
open fun onMountControls(player: ServerPlayer, strafeSpeed: Float, forwardSpeed: Float, jumping: Boolean, sneaking: Boolean)
Content copied to clipboard
onPlayerEvent
Link copied to clipboard
onPlayerMessage
Link copied to clipboard
onPlayerStatistic
Link copied to clipboard
open fun onPlayerStatistic(player: ServerPlayer, stat: Stat<out Any>, amount: Int)
Content copied to clipboard
onRecipeSelected
Link copied to clipboard
open fun onRecipeSelected(player: ServerPlayer, recipe: ResourceLocation, fullStack: Boolean): Boolean
Content copied to clipboard
onSlotSwitch
Link copied to clipboard
onWorldEvent
Link copied to clipboard
onWorldEventFlag
Link copied to clipboard
publicEvents
Link copied to clipboard
open fun publicEvents(server: CarpetScriptServer): List<CarpetEventServer.Event>
Content copied to clipboard
removeAllHostEvents
Link copied to clipboard
transferAllHostEventsToChild
Link copied to clipboard