- canBeSteered() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Checks if the NPC can be steered.
- cancel() - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Cancel the trigger event.
- canFallDamage() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the status if the NPC can take fall damage.
- canFallDamage(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the status if the NPC can take fall damage.
- canGetBurned() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the burnable status of the NPC.
- canGetBurned(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the burnable status of the NPC.
- canPickup() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Returns whether it's possible to pick up this item, or not.
- canPickUpLoot(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Make NPC can pick up stuff.
- canSwim() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Checks if the NPC can swim.
- change(String...) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
- changedProperties - Variable in class mchorse.mappet.api.ui.components.UIComponent
-
- changeHUDMorph(String, int, AbstractMorph) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Change a morph in a HUD scene at given index with given morph.
- children - Variable in class mchorse.mappet.api.ui.components.UIParentComponent
-
- clear() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptInventory
-
Empty the inventory.
- clear() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
-
Remove all states.
- clearAllCanDestroyBlocks() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Clear all blocks that the item stack can destroy.
- clearAllCanPlaceOnBlocks() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Clear all blocks that the item stack can place on.
- clearAllEnchantments() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Clear all enchantments from the item stack.
- clearAllLores() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Remove all lore lines from the item stack.
- clearAllRepeatingCommands() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Clears all the repeating commands of an entity.
- clearArmor() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Clear the entity's whole armor set.
- clearCanDestroyBlock(String) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Clear a block that the item stack can destroy.
- clearCanPlaceOnBlock(String) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Clear a block that the item stack can place on.
- clearChanges() - Method in class mchorse.mappet.api.ui.components.UIComponent
-
- clearEntityPatrols() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Clears all patrol points from the entity
c.getSubject().clearEntityPatrols();
- clearLeashHolder(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Clears the leash holder of this entity.
- clearLore(int) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Remove a lore line from the item stack.
- clearPatrolPoints() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Removes all NPC's patrol points.
- clearPotions() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Remove all potion effects from this entity.
- clearRotationsAI() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Clears the entity's AI rotations
c.getSubject().clearRotationsAI();
- click() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert a click area UI component into UI being built by this builder.
- clone(int, int, int, int, int, int, int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Clones am area to another area.
- clone(int, int, int, int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Clones the block to another coordinates.
- closable(boolean) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Toggle closability of this UI screen.
- closeAllHUD() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Close all HUD scenes.
- closeHUD(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Close specific HUD scene for this player.
- closeUI() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Close the user interface.
- color(int) - Method in class mchorse.mappet.api.ui.components.UILabelBaseComponent
-
Change text color of this component by providing hex RGB.
- color(int, boolean) - Method in class mchorse.mappet.api.ui.components.UILabelBaseComponent
-
Change text color of this component by providing hex RGB.
- column(int) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert a column layout UI component into UI being built by this builder.
- column(int, int) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert a column layout UI component into UI being built by this builder.
- combine(INBT) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBT
-
Add given NBT data's values on top of this one.
- complete(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetQuests
-
Complete (and reward) the quest in these quests by given ID.
- contains(double, double, double) - Method in class mchorse.mappet.api.scripts.user.data.ScriptBox
-
Checks if given coordinates are inside of this box
function main(c)
{
var box = mappet.box(-10, 4, -10, 10, 6, 10);
if (box.contains(0, 4, 0)){
c.send("this point is inside the box")
}
if (box.contains(0, 7, 0)){
c.send("this point is outside the box")
}
}
- contains(ScriptVector) - Method in class mchorse.mappet.api.scripts.user.data.ScriptBox
-
Checks if given coordinates are inside of this box
function main(c)
{
var subject = c.getSubject();
var subjectPosition = subject.getPosition();
var box = mappet.box(-10, 4, -10, 10, 6, 10);
if (box.contains(subjectPosition)){
c.send("the player in in the box")
}
}
- contains(Vector3d) - Method in class mchorse.mappet.api.scripts.user.data.ScriptBox
-
- context - Variable in class mchorse.mappet.api.ui.components.UIComponent
-
- context(String, String, String) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Add a context menu item.
- context(String, String, String, int) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Add a context menu item.
- copy() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get a copy of item stack.
- copy() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBT
-
Create a copy of this NBT tag.
- create(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert a UI component based on its ID into UI being built by this builder.
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UIButtonComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UIClickComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UIIconButtonComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UILabelComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UILayoutComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UIStackComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UITextareaComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UITextboxComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UITextComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UIToggleComponent
-
- create(Minecraft, UIContext) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
-
- createBlockItem(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create an item stack with block ID.
- createBlockItem(String, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create an item stack with block ID and count.
- createBlockItem(String, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create an item stack with block ID, count and meta.
- createBlockState(String, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Get a block state that can be used to place and compare blocks in
the
IScriptWorld.
- createBlockState(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create a block state that can with the default meta value.
- createCompound() - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create an empty NBT compound.
- createCompound(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Parse an NBT compound data out of given string, if string NBT was
invalid then an empty compound will be returned.
- createCompoundFromJS(Object) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Turn a JS object into an NBT compound.
- createContext(GuiSimpleContextMenu, GuiElement, UIContext) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
- createContext(GuiSimpleContextMenu, GuiElement, UIContext) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
-
- createItem(INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create an item stack out of string NBT.
- createItem(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create an item stack with item ID.
- createItem(String, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create an item stack with item ID, count
var item = mappet.createItem("minecraft:diamond", 64);
// {id:"minecraft:diamond",Count:64b,Damage:0s}
c.send(item.serialize());
- createItem(String, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create an item stack with item ID, count and meta
var damaged_hoe = mappet.createItem("minecraft:diamond_hoe", 64, 5);
// {id:"minecraft:diamond_hoe",Count:64b,Damage:5s}
c.send(damaged_hoe.serialize());
- createItemNBT(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create an item stack out of string NBT.
- createList() - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create an empty NBT list.
- createList(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Parse an NBT list data out of given string, if string NBT was
invalid then an empty list will be returned.
- createListFromJS(Object) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Turn a JS object into an NBT compound.
- createMorph(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create a morph out of string NBT.
- createMorph(INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create a morph out of NBT.
- createSchematic() - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Returns a new empty Schematic object.
- createUI() - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create a UI.
- createUI(IScriptEvent, String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create a UI with a script handler.
- createUI(String, String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Create a UI with a script handler.
- get(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Get a global arbitrary object.
- get(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIContext
-
Returns a UI component by given ID or null.
- get(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get the value of in this compound by given key of the raw type.
- getAge() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Get entity's age.
- getAllPlayers() - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
-
Get all players on the server.
- getAttackRange() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the attack range of the NPC.
- getBlock() - Method in interface mchorse.mappet.api.scripts.user.IScriptRayTrace
-
Get block position it hit.
- getBlock(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get block state at given XYZ.
- getBlock(ScriptVector) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get block state at given XYZ.
- getBlockId() - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptBlockState
-
Get block's ID like minecraft:stone.
- getBlocksPositions(ScriptWorld, ScriptBlockState) - Method in class mchorse.mappet.api.scripts.user.data.ScriptBox
-
Returns a list of positions for blocks in the box that match a given block state in a given world.
- getBlockStackWithTile(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Gets the block stack at given position, including tile entity data.
- getBoolean(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get boolean (true or false) value by given key.
- getBoolean(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Get boolean (true or false) value at given index
- getBoots() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Return the entity's boots' item stack.
- getBoundingBox() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Returns the bounding box of this entity.
- getByte(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get byte (8-bit integer) value by given key.
- getByte(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Get byte (8-bit integer) value at given index
- getCanDestroyBlocks() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get a list of all blocks the item stack can destroy.
- getCanPlaceOnBlocks() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get a list of all blocks the item stack can place on.
- getChanges() - Method in class mchorse.mappet.api.ui.components.UIComponent
-
- getChestplate() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Return the entity's chestplate's item stack.
- getChildComponents() - Method in class mchorse.mappet.api.ui.components.UIComponent
-
- getChildComponents() - Method in class mchorse.mappet.api.ui.components.UIParentComponent
-
- getCombinedLight() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get combined light value of where the entity is currently standing.
- getCompound(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get NBT compound by given key.
- getCompound(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Get NBT compound at given index
- getContext() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIContext
-
Get the ID of the last context menu item.
- getCooldown(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get cooldown of a particular inventory index of the player.
- getCooldown(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get cooldown of a particular inventory index of the player.
- getCount() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get item stack's count.
- getCurrent() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Get current UI component on to which it adds children components.
- getDamage() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the damage strength points of the NPC.
- getDamageDelay() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the damage delay of the NPC.
- getData() - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptTileEntity
-
Get (a copy of) this tile entity's NBT data.
- getData() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get item stack's NBT compound tag.
- getData() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIContext
-
Get the NBT compound of the UI data.
- getDefaultUpdateDelay() - Method in class mchorse.mappet.api.ui.components.UIComponent
-
- getDefaultUpdateDelay() - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
-
- getDefaultUpdateDelay() - Method in class mchorse.mappet.api.ui.components.UIStackComponent
-
- getDefaultUpdateDelay() - Method in class mchorse.mappet.api.ui.components.UITextareaComponent
-
- getDefaultUpdateDelay() - Method in class mchorse.mappet.api.ui.components.UITextboxComponent
-
- getDefaultUpdateDelay() - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
-
- getDimension() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Returns the dimension of the entity.
- getDimensionId() - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get world's dimension ID.
- getDisplayedHUDs() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get all HUD scenes (including global HUDs) that are currently displayed for this player.
- getDisplayName() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get display name of the item stack.
- getDouble(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get double (64-bit floating point number) value by given key.
- getDouble(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Get double (64-bit floating point number) value at given index
- getEnderChest() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get player's ender chest inventory.
- getEntities(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
-
Get all entities matching giving target selector.
- getEntities(double, double, double, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get entities within the box specified by given coordinates in this world.
- getEntities(double, double, double, double, double, double, boolean) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get entities within the box specified by given coordinates in this world ignoring the volume limit.
- getEntities(double, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get entities within the sphere specified by given coordinates and radius in
this world.
- getEntity() - Method in interface mchorse.mappet.api.scripts.user.IScriptRayTrace
-
Get entity that was captured by this ray trace result (it can be null).
- getEntity(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
-
Get an entity by its UUID.
- getEntityData() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get Forge's custom tag compound in which you can story any
data you want.
- getEntityId() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's resource location ID, like minecraft:pig or
minecraft:zombie.
- getEyeHeight() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Returns the eye height of the entity.
- getFaction() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Returns the faction of the NPC as a string
c.send(c.getSubject().getFaction())
- getFactions() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Returns the faction of the npc as a string
for each (var faction in c.getSubject().getFactions()){
c.send(faction)
}
- getFallDistance() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's fall distance.
- getFloat(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get float (32-bit floating point number) value by given key.
- getFloat(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Get float (32-bit floating point number) value at given index
- getFlySpeed() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Returns if the flight speed of the player.
- getFullData() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's full (copy of its) NBT data.
- getFunction() - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Get script's function name.
- getGameMode() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get player's game mode.
- getGameRule(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get a game rule value.
- getGlobalDisplayedHUDs() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get all global HUD scenes that are currently saved on player and displayed for him and other players.
- getHeight() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's current hitbox height.
- getHelmet() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Return the entity's helmet's item stack.
- getHitPosition() - Method in interface mchorse.mappet.api.scripts.user.IScriptRayTrace
-
Get precise position where it hit.
- getHotbarIndex() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get the inventory index of main item.
- getHotkey() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIContext
-
Get the ID of the last pressed hot key.
- getHp() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get health points of this entity (20 is the max default for players).
- getHunger() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
- getId() - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptTileEntity
-
Get tile entity's ID.
- getId() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItem
-
Get item's ID like "minecraft:stick" or "minecraft:diamond_hoe"
- getIds() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetQuests
-
Get all present quests' IDs.
- getInt(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get integer (32-bit integer) value by given key.
- getInt(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Get integer (32-bit integer) value at given index
- getInventory() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get player's inventory.
- getInventory(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get inventory tile entity at given XYZ.
- getItem() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Get itemStack from this entity.
- getItem() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get item stack's item.
- getJumpPower() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the jump power of the NPC.
- getLabel() - Method in class mchorse.mappet.api.ui.components.UILabelBaseComponent
-
- getLast() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIContext
-
Get the ID of last edited UI component.
- getLeashedEntities() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Returns leashed entities by this entity.
- getLeashHolder() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Returns the leash holder of this entity.
- getLeggings() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Return the entity's leggings' item stack.
- getLifespan() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Get entity's lifespan (max age).
- getList(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get NBT list by given key.
- getList(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Get NBT list at given index
- getLogger() - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Return a mappet logger instance.
- getLong(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get long (64-bit integer) value by given key.
- getLong(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Get long (64-bit integer) value at given index
- getLook() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get a vector in which direction entity looks.
- getLore(int) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get lore of the item stack.
- getLoreList() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get all lore lines of the item stack as a list.
- getMainItem() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get item held in main hand.
- getMappetEntity(Entity) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Return a mappet entity/player/npc by given minecraft entity.
- getMappetNpc() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Get Mappet entity NPC instance.
- getMaxCount() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get item stack's maximum size.
- getMaxHp() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get maximum health points this entity can have.
- getMeta() - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptBlockState
-
Get meta value of this state (it will always be between 0 and 15).
- getMeta() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get item stack's meta.
- getMinecraftBlockState() - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptBlockState
-
Get Minecraft block state instance.
- getMinecraftEntity() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get Minecraft entity instance.
- getMinecraftInventory() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptInventory
-
Get Minecraft inventory instance.
- getMinecraftItem() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItem
-
Get Minecraft item instance.
- getMinecraftItemStack() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get Minecraft item stack instance.
- getMinecraftPlayer() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get Minecraft player entity instance.
- getMinecraftRayTraceResult() - Method in interface mchorse.mappet.api.scripts.user.IScriptRayTrace
-
Get Minecraft ray trace result.
- getMinecraftServer() - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
-
Get Minecraft server instance.
- getMinecraftTileEntity() - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptTileEntity
-
Get Minecraft tile entity instance.
- getMinecraftWorld() - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get Minecraft world instance.
- getModifier(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Return an entity's modifier.
- getMorph() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's morph (works with player and NPCs).
- getMotion() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's motion.
- getMount() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Returns the entity that this entity rides on.
- getName() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity name.
- getName() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptInventory
-
Get basic inventory's name.
- getNBTTagComound() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Deprecated.
- getNBTTagCompound() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get raw NBT tag compound.
- getNBTTagList() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Get raw NBT tag list.
- getNPC() - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Get the first Mappet NPC from either subject or object (or null, if there is no NPC).
- getNpcId() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Get NPC's NPC ID.
- getNpcSpeed() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the speed of the NPC.
- getNpcState() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Get NPC's state.
- getNumber(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
-
Get a numeric value of a state by given ID.
- getObject() - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Get object (secondary) entity that was passed into the event.
- getOffItem() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get item held in off hand.
- getOwner() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Get entity's owner nickname (Who can pick up this item).
- getParticleType(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Get Minecraft particle type by its name.
- getPathDistance() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the path distance of the NPC.
- getPickupDelay() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Get entity's pickup delay.
- getPitch() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's pitch (vertical rotation).
- getPlayer() - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Get the first player from either subject or object (or null, if there is no player).
- getPlayer(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
-
Get a player by their username.
- getPosition() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's position.
- getPotion(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Get Minecraft potion effect by its name.
- getQuests() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get entity's quests (if it has some, only players have quests).
- getRepairCost() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Get repair cost of the item stack.
- getRotations() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's rotation (x is pitch, y is yaw, and z is yaw head, if entity
is living base).
- getSaturation() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
- getScript() - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Get script's ID to which this event was passed to.
- getServer() - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Get the server in which this event happened.
- getShadowSize() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the shadow size of the NPC.
- getShort(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get short (16-bit integer) value by given key.
- getShort(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Get short (16-bit integer) value at given index
- getSkin() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get player's skin.
- getSpawnPoint() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Gets the player's spawn point.
- getStack(int) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptInventory
-
Get stack in slot at given index.
- getStates() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's states (if it has some, only players and NPCs have states).
- getStates() - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
-
Get global (server) states.
- getSteeringOffsets() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the steering offset of the NPC.
- getString(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
-
Get a string value of a state by given ID.
- getString(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Get string value by given key.
- getString(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Get string value at given index
- getSubject() - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Get subject (primary) entity that was passed into the event.
- getTarget() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get this entity's attack target.
- getThrower() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Get entity's thrower nickname (Who throw this item).
- getTicks() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get how many ticks did this entity existed.
- getTileData() - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptTileEntity
-
Get Forge's custom tag compound in which you can story any
data you want.
- getTileEntity(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get tile entity at given XYZ.
- getTime() - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get current time of day (the one that is set by /time set command).
- getTotalTime() - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Get total time that this world existed for (in ticks).
- getUIContext() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get the UI context of currently opened user UI.
- getUniqueId() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get unique ID of this entity, which can be used, if needed, in
commands as a target selector.
- getValue(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Get a value for given key (might be a null).
- getValues() - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Get a map of extra context values that was passed into the event.
- getValues() - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
-
Returns values of this string list.
- getWalkSpeed() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Returns if the walk speed of the player.
- getWidth() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's current hitbox width (and depth, it's the same number).
- getWorld() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's world.
- getWorld() - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Get the world in which this event happened.
- getWorld(int) - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
-
Get world at dimension ID.
- getXpLevel() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get player's current experience level.
- getXpPoints() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Get player's experience points in their current level.
- getXpValue() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the XP value of the NPC.
- getYaw() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's yaw (horizontal rotation).
- getYawHead() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Get entity's head yaw.
- giveItem(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Give item to this entity.
- giveItem(IScriptItemStack, boolean, boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Give item to this entity.
- gradient(int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw a vertical gradient rectangle.
- gradient(int, int, boolean) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw a vertical/horizontal gradient rectangle.
- gradient(int, int, int, int, int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw a vertical gradient rectangle relative to graphics component's frame.
- gradient(int, int, int, int, int, int, boolean) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw a gradient rectangle relative to graphics component's frame.
- Graphic - Class in mchorse.mappet.client.gui.utils.graphics
-
Graphic element.
- Graphic() - Constructor for class mchorse.mappet.client.gui.utils.graphics.Graphic
-
- graphics() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert a graphics UI component into UI being built by this builder.
- graphics - Variable in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
- grid(int) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert a grid layout UI component into UI being built by this builder.
- grid(int, int) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert a grid layout UI component into UI being built by this builder.
- icon(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert an icon button UI component into UI being built by this builder.
- icon(String, int, int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw a McLib icon relative to graphics component's frame.
- icon(String, int, int, int, float, float) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw a McLib icon with an anchor relative to graphics component's frame.
- icon - Variable in class mchorse.mappet.api.ui.components.UIIconButtonComponent
-
- icon(String) - Method in class mchorse.mappet.api.ui.components.UIIconButtonComponent
-
Change icon component's icon.
- id - Variable in class mchorse.mappet.api.ui.components.UIComponent
-
- id(String) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Set the ID of the component.
- image(String, int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw an image.
- image(String, int, int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw an image.
- image(String, int, int, int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw an image relative to graphics component's frame.
- image(String, int, int, int, int, int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw an image relative to graphics component's frame with known texture size.
- image(String, int, int, int, int, int, int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw an image relative to graphics component's frame with known texture size and color.
- IMappetLogger - Interface in mchorse.mappet.api.scripts.user.logs
-
This interface represents Mappet logger.
- IMappetQuests - Interface in mchorse.mappet.api.scripts.user.mappet
-
This interface represents Mappet player's quests.
- IMappetSchematic - Interface in mchorse.mappet.api.scripts.user.mappet
-
- IMappetStates - Interface in mchorse.mappet.api.scripts.user.mappet
-
This interface represents Mappet states.
- IMappetUIBuilder - Interface in mchorse.mappet.api.scripts.user.mappet
-
This is user interface builder interface.
- IMappetUIContext - Interface in mchorse.mappet.api.scripts.user.mappet
-
This interface represents an UI context, which is an object that
stores UI data when player has opened custom GUI made with
IMappetUIBuilder.
- INBT - Interface in mchorse.mappet.api.scripts.user.nbt
-
Common interface for NBT data types.
- INBTCompound - Interface in mchorse.mappet.api.scripts.user.nbt
-
Interface that represents an NBT compound tag
- INBTList - Interface in mchorse.mappet.api.scripts.user.nbt
-
Interface that represents an NBT list tag
- increment - Variable in class mchorse.mappet.api.ui.components.UITrackpadComponent
-
- increment(double) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
-
Changes the incremental value of this trackpad fields, i.e. how much being added
or subtracted when user presses < and > buttons on the sides of the
trackpad value.
- info(String) - Method in interface mchorse.mappet.api.scripts.user.logs.IMappetLogger
-
Logging a message with INFO level.
- integer - Variable in class mchorse.mappet.api.ui.components.UITrackpadComponent
-
- integer() - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
-
Set this trackpad component to accept only whole numbers.
- integer(boolean) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
-
Toggle integer option, when passed true then this trackpad
component will accept only whole numbers, and when passed false,
then both whole and floating point numbers can be accepted by this trackpad.
- isActive(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Return whether a button, plate or lever is active or not.
- isAIEnabled() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check whether entity's AI is enabled.
- isAir() - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptBlockState
-
Check whether given block state is air.
- isBlock() - Method in interface mchorse.mappet.api.scripts.user.IScriptRayTrace
-
Check whether this ray trace result hit a block.
- isBurning() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check whether this entity is on fire.
- isClosed() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIContext
-
Returns whether the UI was just closed.
- isColliding(ScriptBox) - Method in class mchorse.mappet.api.scripts.user.data.ScriptBox
-
- isComplete(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetQuests
-
Check whether a quest by given ID can be completed.
- isCompound() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBT
-
Check whether this NBT data is an NBT compound.
- IScriptBlockState - Interface in mchorse.mappet.api.scripts.user.blocks
-
Scripted block state.
- IScriptEntity - Interface in mchorse.mappet.api.scripts.user.entities
-
Entity interface.
- IScriptEntityItem - Interface in mchorse.mappet.api.scripts.user.entities
-
EntityItem interface.
- IScriptEvent - Interface in mchorse.mappet.api.scripts.user
-
Script event.
- IScriptFactory - Interface in mchorse.mappet.api.scripts.user
-
Scripting API factory that allows to initialize/create different stuff.
- IScriptInventory - Interface in mchorse.mappet.api.scripts.user.items
-
This interface represents an inventory.
- IScriptItem - Interface in mchorse.mappet.api.scripts.user.items
-
This interface represents an item
- IScriptItemStack - Interface in mchorse.mappet.api.scripts.user.items
-
This interface represents an item stack
- IScriptNpc - Interface in mchorse.mappet.api.scripts.user.entities
-
Mappet's NPC entity interface.
- IScriptPlayer - Interface in mchorse.mappet.api.scripts.user.entities
-
Player entity interface.
- IScriptRayTrace - Interface in mchorse.mappet.api.scripts.user
-
This interface represents a ray tracing result.
- IScriptServer - Interface in mchorse.mappet.api.scripts.user
-
This interface represent the server passed in the event.
- IScriptTileEntity - Interface in mchorse.mappet.api.scripts.user.blocks
-
Tile entity interface.
- IScriptWorld - Interface in mchorse.mappet.api.scripts.user
-
This interface represent a world passed in the event.
- isDataReserved() - Method in class mchorse.mappet.api.ui.components.UIButtonComponent
-
- isDataReserved() - Method in class mchorse.mappet.api.ui.components.UIComponent
-
- isDataReserved() - Method in class mchorse.mappet.api.ui.components.UIIconButtonComponent
-
- isEmpty() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptInventory
-
Check whether this inventory is empty.
- isEmpty() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Whether this item is empty.
- isEmpty() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBT
-
Check whether this NBT tag is empty.
- isEntity() - Method in interface mchorse.mappet.api.scripts.user.IScriptRayTrace
-
Check whether this ray trace result hit an entity.
- isEntityInRadius(IScriptEntity, double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check if an entity is in a radius of another specific entity
// Kills all cows within 5 blocks of the player
function main(c)
{
var tracker = c.getSubject();
var trackedEntities = c.getServer().getEntities("@e[type=cow]");
for each (var trackedEntity in trackedEntities)
{
if (trackedEntity.isEntityInRadius(tracker, 5))
{
trackedEntity.kill();
}
}
}
- isFlying() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Returns if the player is flying.
- isImmovable() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Checks if the NPC is immovable.
- isInArea(double, double, double, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check if this entity is standing in a given area.
- isInBlock(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check if this entity is standing in a given block.
- isInLava() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check whether this entity is in lava.
- isInvalid() - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptTileEntity
-
Check whether this tile entity is invalid (i.e. was removed from the world
or unavailable for some reason).
- isInvincible() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Checks if the NPC is invincible.
- isInWater() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check whether this entity is in water.
- isItem() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check whether this entity is an item.
- isKillable() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Gets the killable status of the NPC.
- isList() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBT
-
Check whether this NBT data is an NBT list.
- isLivingBase() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check whether this entity is living base.
- isMissed() - Method in interface mchorse.mappet.api.scripts.user.IScriptRayTrace
-
Check whether this ray trace result didn't capture anything.
- isNpc() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Deprecated.
- isNPC() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check whether this entity is an NPC.
- isNumber(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
-
Check if a state instance of number.
- isOnGround() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Is this entity on the ground.
- isOnline(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
-
Check if a player is online.
- isOpaque() - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptBlockState
-
Check whether given block state is occupying a full block entirely,
rather than being see through or not full (1, 1, 1) block space.
- isPlayer() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check whether this entity is a player.
- isPointInBounds(Object, Object, Object) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Determines whether a point is located inside a bounding volume specified by two corners.
- isPositionLocked() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check if the entity's position is locked.
- isRaining() - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Check whether it's raining in the world.
- isRotationLocked() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check if the entity's rotation is locked.
- isSame(IScriptBlockState) - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptBlockState
-
Check whether this block state is same as given block state.
- isSame(IScriptEntity) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Check whether this entity is same as given entity.
- isSame(IScriptItem) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItem
-
Check whether given item is same as this one
- isSame(INBT) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBT
-
Check whether given NBT tag is same as this one.
- isSameBlock(IScriptBlockState) - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptBlockState
-
Check whether given block state has the same block, but
not necessarily the same meta value.
- isSneaking() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Is this entity is sneaking.
- isSprinting() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Is this entity is sprinting.
- isString(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
-
Check if a state instance of string.
- isUnbreakable() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Check if an item stack is unbreakable.
- item() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert an item stack UI component into UI being built by this builder.
- item(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert an item stack UI component into UI, with default item stack
picked, being built by this builder.
- items - Variable in class mchorse.mappet.api.ui.components.UILayoutComponent
-
- items(int) - Method in class mchorse.mappet.api.ui.components.UILayoutComponent
-
- random(double) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Generate a random number between 0 and the given max value (but not
including the maximum value).
- random(double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Generate a random number between the given min value and the given max value
(but not including the maximum value).
- random(double, double, long) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Generate a random number between the given min value and the given max value
(but not including the maximum value) with given seed.
- rayTrace(double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Ray trace from entity's looking direction (including any entity intersection).
- rayTrace(double, double, double, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Ray trace in this world, between two given points (including any entity intersection).
- rayTraceBlock(double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Ray trace from entity's looking direction (excluding entities).
- rayTraceBlock(double, double, double, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Ray trace in this world, between two given points (excluding entities).
- rect(int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw a solid colored rectangle.
- rect(int, int, int, int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw a solid colored rectangle relative to graphics component's frame.
- relativeH - Variable in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
- relativeW - Variable in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
- relativeX - Variable in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
- relativeY - Variable in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
- remove() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Remove this entity from the server without any dead effects (essentially despawn).
- remove(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Remove a value by given key.
- remove(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Remove an element at given index
- removeAll() - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
- removeAllModifiers() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Remove all the modifiers of the entity.
- removeBlock(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Remove a block at given XYZ.
- removeModifier(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Remove entity's modifier.
- removePatrolPoint(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Removes a patrol point at a certain indext from the NPC.
- removePatrolPoint(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Removes a patrol point at a certain position from the NPC.
- removePotion(Potion) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Remove given potion effect from this entity.
- removeRepeatingCommand(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Removes a repeating command from an entity.
- removeStack(int) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptInventory
-
Remove a stack at given index
// Assuming that c.getSubject() is a player
var inventory = c.getSubject().getInventory();
var first = inventory.removeStack(0);
if (first.isEmpty())
{
c.getSubject().send("Oh... you had nothing...");
}
else
{
c.getSubject().send("Ha-ha, I stole your " + first.getItem().getId());
}
- replaceBlocks(IScriptBlockState, IScriptBlockState, Vector3d, Vector3d) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Replace all blocks in the given area with the given block state.
- replaceBlocks(IScriptBlockState, IScriptBlockState, INBTCompound, Vector3d, Vector3d) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Replace all blocks in the given area with the given block state and tile entity data.
- reset(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
-
Removes a state by given ID.
- resetContext(GuiElement, UIContext) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
- resetContext(GuiElement, UIContext) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
-
- resetCooldown(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Reset cooldown for given item.
- resetCooldown(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Reset cooldown of a particular inventory index of the player.
- resetFlySpeed() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Reset the flight speed of the player.
- resetMasked(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
-
Removes multiple states by using mask.
- resetWalkSpeed() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Reset the walking speed of the player.
- rh(float) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Set height relative in percents to parent component.
- rh(float, int) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Set height relative in percents to parent component with offset.
- rh(float) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
Set height relative in percents to parent component.
- rh(float, int) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
Set height relative in percents to parent component with offset.
- rot - Variable in class mchorse.mappet.api.ui.components.UIMorphComponent
-
- rotation(float, float) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
-
Change camera orbit rotation in the morph component.
- row(int) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert a row layout UI component into UI being built by this builder.
- row(int, int) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert a row layout UI component into UI being built by this builder.
- rw(float) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Set width relative in percents to parent component.
- rw(float, int) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Set width relative in percents to parent component with offset.
- rw(float) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
Set width relative in percents to parent component.
- rw(float, int) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
Set width relative in percents to parent component with offset.
- rwh(float, float) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Set relative width and height in percentage relative to parent component.
- rwh(float, float) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
Set relative width and height in percentage relative to parent component.
- rx(float) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Set X relative in percents to parent component.
- rx(float, int) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Set X relative in percents to parent component with offset.
- rx(float) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
Set X relative in percents to parent component.
- rx(float, int) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
Set X relative in percents to parent component with offset.
- rxy(float, float) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Set X and Y in pixels in percentage relative to parent component.
- rxy(float, float) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
Set X and Y in pixels in percentage relative to parent component.
- ry(float) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Set Y relative in percents to parent component.
- ry(float, int) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
Set Y relative in percents to parent component with offset.
- ry(float) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
Set Y relative in percents to parent component.
- ry(float, int) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
Set Y relative in percents to parent component with offset.
- saveToFile(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetSchematic
-
Uses to save schematic.
- scheduleScript(int) - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Schedule execution of the same script (with same function)
given ticks forward.
- scheduleScript(String, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Schedule execution of the same script with given function
given ticks forward.
- scheduleScript(String, String, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Schedule execution of given script with specific function
given ticks forward.
- scheduleScript(int, ScriptObjectMirror) - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Schedule a JavaScript function (instead of script).
- scheduleScript(int, Consumer<IScriptEvent>) - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Schedule a function (instead of script).
- ScriptBox - Class in mchorse.mappet.api.scripts.user.data
-
Script box represents a box in the space
function main(c)
{
var subject = c.getSubject();
var subjectPosition = subject.getPosition();
var box = mappet.box(-10, 4, -10, 10, 6, 10);
if (box.contains(subjectPosition)){
c.send("the player in in the box")
}
}
- ScriptBox(double, double, double, double, double, double) - Constructor for class mchorse.mappet.api.scripts.user.data.ScriptBox
-
- ScriptVector - Class in mchorse.mappet.api.scripts.user.data
-
Script vector (position) represents a position in the space
- ScriptVector(double, double, double) - Constructor for class mchorse.mappet.api.scripts.user.data.ScriptVector
-
- ScriptVector(Vec3d) - Constructor for class mchorse.mappet.api.scripts.user.data.ScriptVector
-
- ScriptVector(BlockPos) - Constructor for class mchorse.mappet.api.scripts.user.data.ScriptVector
-
- scroll - Variable in class mchorse.mappet.api.ui.components.UILayoutComponent
-
- scroll() - Method in class mchorse.mappet.api.ui.components.UILayoutComponent
-
Enables scrolling.
- scrollSize - Variable in class mchorse.mappet.api.ui.components.UILayoutComponent
-
- scrollSize(int) - Method in class mchorse.mappet.api.ui.components.UILayoutComponent
-
Set manually scroll size of the layout element.
- selected - Variable in class mchorse.mappet.api.ui.components.UIStringListComponent
-
- selected(int) - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
-
Set the currently selected element.
- send(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Send a message to this player.
- send(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Send a message to all players in the chat.
- sendActionBar(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Send a message to this player that will be displayed in action bar.
- sendRaw(INBT) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Send a message to this player using text component (like /tellraw command).
- sendSubtitle(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Send the subtitle to this player that will be displayed in the middle of the
screen.
- sendTitle(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Send the title to this player that will be displayed in the middle of the screen.
- sendTitleDurations(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Send title and subtitle durations (in ticks, 20 ticks = 1 second).
- sendToPlayer() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIContext
-
Sends UI changes to the player.
- serialize() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Serialize item stack to an NBT compound.
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIButtonComponent
-
- serializeNBT() - Method in class mchorse.mappet.api.ui.components.UIComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIIconButtonComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UILabelBaseComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UILabelComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UILayoutComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIParentComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIStackComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UITextboxComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UITextComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIToggleComponent
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
-
- serializeNBT() - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
- serializeNBT(NBTTagCompound) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
-
- set(String, Object) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Set a global arbitrary object during server's existence (other scripts
can access this data too).
- setAge(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Set entity's age.
- setAIEnabled(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity's AI to be enabled or disabled (if it has it).
- setArmor(IScriptItemStack, IScriptItemStack, IScriptItemStack, IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set the entity's whole armor set.
- setAttackRange(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the attack range of the NPC.
- setBlock(IScriptBlockState, int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
- setBoolean(String, boolean) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Set boolean (true or false) value by given key.
- setBoolean(int, boolean) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Set boolean (true or false) value at given index
- setBoots(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set the entity's boots.
- setBurning(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity on fire for given amount of ticks.
- setByte(String, byte) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Set byte (8-bit integer) value by given key.
- setByte(int, byte) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Set byte (8-bit integer) value at given index
- setCanBeSteered(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets whether the NPC can be steered.
- setCanSwim(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets whether the NPC can swim.
- setChestplate(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set the entity's chestplate.
- setCompound(String, INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Set NBT compound by given key.
- setCompound(int, INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Set NBT compound at given index
- setCooldown(int, int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Set cooldown of a particular inventory index of the player.
- setCooldown(IScriptItemStack, int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Set cooldown for given item.
- setCount(int) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Set item stack's count.
- setDamage(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the damage strength points of the NPC.
- setDamageDelay(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the damage delay of the NPC.
- setData(INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptTileEntity
-
Overwrite NBT data of this tile entity.
- setData(INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Replace item stack's NBT compound tag.
- setDefaultPickupDelay() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Set's default pick up delay (10, actually).
- setDimension(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set the dimension of the entity.
- setDisplayName(String) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Set display name of the item stack.
- setDouble(String, double) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Set double (64-bit floating point number) value by given key.
- setDouble(int, double) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Set double (64-bit floating point number) value at given index
- setFallDistance(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity's fall distance.
- setFallingBlock(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Transform a block to a falling block in specific coordinates.
- setFloat(String, float) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Set float (32-bit floating point number) value by given key.
- setFloat(int, float) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Set float (32-bit floating point number) value at given index
- setFlyingEnabled(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Allows the player to fly in whatever game mode they're in.
- setFlySpeed(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Set the flight speed of the player.
- setFullData(INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Overwrite NBT data of this entity.
- setGameMode(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Set player's game mode.
- setGameRule(String, Object) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Set a game rule to a given value.
- setHelmet(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set the entity's helemt.
- setHotbarIndex(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Set forcefully player's current hotbar inventory index.
- setHp(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity's health points.
- setHunger(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
- setImmovable(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets whether the NPC is immovable.
- setInfinitePickupDelay() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Makes item unaffordable.
- setInt(String, int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Set integer (32-bit integer) value by given key.
- setInt(int, int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Set integer (32-bit integer) value at given index
- setInvincible(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets whether the NPC is invincible.
- setInvisible(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity to invisible.
- setItem(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Get itemStack from this entity.
- setJumpPower(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the jump power of the NPC.
- setKillable(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the killable status of the NPC.
- setLeashHolder(IScriptEntity) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Sets the leash holder of this entity.
- setLeggings(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set the entity's leggings.
- setLifespan(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Set entity's lifespan (max age).
- setList(String, INBTList) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Set NBT list by given key.
- setList(int, INBTList) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Set NBT list at given index
- setLong(String, long) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Set long (64-bit integer) value by given key.
- setLong(int, long) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Set long (64-bit integer) value at given index
- setLookAround(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the status of the NPC's idle look around behavior.
- setLookAtPlayer(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the status of the NPC's behavior to look at the player.
- setLore(int, String) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Set lore of the item stack.
- setMainItem(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set item held in main hand.
- setMaxHp(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity's maximum health points.
- setMeta(int) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Set item stack's meta.
- setModifier(String, double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity's modifier to a certain value.
- setMorph(AbstractMorph) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity's morph (works with player and NPCs).
- setMotion(double, double, double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity's motion.
- setName(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity name.
- setName(String) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptInventory
-
Set basic inventory's name.
- setNBT(String, String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Set arbitrary NBT.
- setNoDespawn() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Entity will not despawn.
- setNpcSpeed(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the speed of the NPC.
- setNpcState(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Set NPC's state.
- setNumber(String, double) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
-
Set numeric value to existing state by ID.
- setOffItem(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set item held in off hand.
- setOwner(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Set entity's owner nickname (Who can pick up this item).
- setPathDistance(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the path distance of the NPC.
- setPickupDelay(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Set entity's pickup delay.
- setPosition(double, double, double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity's position (teleport).
- setRaining(boolean) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Set raining state.
- setRepairCost(int) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Set repair cost of the item stack.
- setRotations(float, float, float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity's rotation.
- setRotationsAI(float, float, float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Sets the entity's AI to look with specific rotations
c.getSubject().setRotationsAI(0, 90, 0);
- setSaturation(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
- setShadowSize(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the shadow size of the NPC.
- setShort(String, short) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Set short (16-bit integer) value by given key.
- setShort(int, short) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Set short (16-bit integer) value at given index
- setSpawnPoint(double, double, double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Sets the player's spawn point.
- setSpeed(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set entity's speed.
- setStack(int, IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptInventory
-
Replace given stack at index.
- setSteeringOffset(int, float, float, float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the steering offset for the NPC.
- setString(String, String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
-
Set string value to existing state by ID.
- setString(String, String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
-
Set string value by given key.
- setString(int, String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
-
Set string value at given index
- setTarget(IScriptEntity) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Set this entity's attack target to given entity.
- setThrower(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntityItem
-
Set entity's thrower nickname (Who throw this item).
- setTileEntity(int, int, int, IScriptBlockState, INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Sets a tile entity.
- setTime(long) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Set current time of day.
- setUnbreakable(boolean) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
-
Set whether an item stack is unbreakable or not.
- setupHUD(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Setup (initiate) an HUD scene for this player.
- setValue(String, Object) - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
-
Set a value for given key in extra data.
- setValues(List<String>) - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
-
Replace values within this string list.
- setWalkSpeed(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Set the walk speed of the player.
- setWander(boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the wandering status of the NPC.
- setXp(int, int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Set experience level and amount of points for that level.
- setXpValue(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
-
Sets the XP value of the NPC.
- shadow(int, int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw a drop shadow.
- shadow(int, int, int, int, int, int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
-
Draw a drop shadow.
- shootBBGunProjectile(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Spawn a BB gun projectile.
- shootBBGunProjectile(IScriptEntity, double, double, double, double, double, String) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Shoots a gun projectile entity.
- size() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptInventory
-
Return the maximum amount of item stacks in this inventory.
- size() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBT
-
Get the size (amount of elements) in this NBT tag.
- spawnEntity(String, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Spawn an entity at given position.
- spawnEntity(String, double, double, double, INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Spawn an entity at given position with additional data.
- spawnNpc(String, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Spawn an NPC at given position with default state.
- spawnNpc(String, String, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Spawn an NPC at given position with given state.
- spawnNpc(String, String, double, double, double, float, float, float) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Spawn an NPC at given position with given state and rotation.
- spawnParticles(EnumParticleTypes, boolean, double, double, double, int, double, double, double, double, int...) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Spawn vanilla particles.
- spawnParticles(IScriptPlayer, EnumParticleTypes, boolean, double, double, double, int, double, double, double, double, int...) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Spawn vanilla particles only to a specific player.
- stack - Variable in class mchorse.mappet.api.ui.components.UIStackComponent
-
- stack(IScriptItemStack) - Method in class mchorse.mappet.api.ui.components.UIStackComponent
-
Set item stack component's item from scripts.
- stack(ItemStack) - Method in class mchorse.mappet.api.ui.components.UIStackComponent
-
Set item stack component's item.
- state - Variable in class mchorse.mappet.api.ui.components.UIToggleComponent
-
- state(boolean) - Method in class mchorse.mappet.api.ui.components.UIToggleComponent
-
Change component's toggled state.
- stopAllSounds() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Stop all playing sound events for this player.
- stopAllSounds() - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Stop all playing sound events for every player.
- stopScene() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Plays Aperture scenes for this player.
- stopSound(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Stop specific sound event for this player.
- stopSound(String, String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
-
Stop specific sound event in given sound category for this player.
- stopSound(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Stop specific sound event for every player.
- stopSound(String, String) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Stop specific sound event in given sound category for every player.
- stringify() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBT
-
Convert this NBT structure to string.
- stringList(List<String>) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert a string list UI component into UI, with list of possible
values in the list, being built by this builder.
- stringList(List<String>, int) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
-
Create and insert a string list UI component into UI, with list of possible
values in the list and selected index by default, being built by this builder.
- strong - Variable in class mchorse.mappet.api.ui.components.UITrackpadComponent
-
- style(String...) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
-
Return Minecraft's formatting code.
- subtract(ScriptVector) - Method in class mchorse.mappet.api.scripts.user.data.ScriptVector
-
- summonFallingBlock(double, double, double, String, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
-
Summon a falling block with a specific block id and meta.
- swingArm() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Swing entity's main hand.
- swingArm(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
-
Swing entity's arm.