Skip navigation links
A B C D E F G H I K L M N O P R S T U V W X Y Z 

A

add(ScriptVector) - Method in class mchorse.mappet.api.scripts.user.data.ScriptVector
 
add(int) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
Add/remove more items to the stack.
add(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetQuests
Add a quest into these quests by given ID.
add(String, double) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
Add some value to existing state by ID.
addBoolean(boolean) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Add boolean (true or false) value at the end of the list
addByte(byte) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Add byte (8-bit integer) value at the end of the list
addCanDestroyBlock(String) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
Add a block that the item stack can destroy.
addCanPlaceOnBlock(String) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
Add a block that the item stack can place on.
addCompound(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
Adds a new compound to this compound.
addCompound(INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Add NBT compound at the end of the list
addDouble(double) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Add double (64-bit floating point number) value at the end of the list
addEntityPatrol(double, double, double, double, boolean, String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Adds a patrol point to the entity var s = c.getSubject(); s.addEntityPatrol(440, 117, 640, 1, true, "particle heart ~ ~1 ~ 0.2 0.2 0.2 1") s.addEntityPatrol(444, 117, 640, 1, true, "particle angryVillager ~ ~1 ~ 0.2 0.2 0.2 1")
addFloat(float) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Add float (32-bit floating point number) value at the end of the list
addInt(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Add integer (32-bit integer) value at the end of the list
addList(INBTList) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Add NBT list at the end of the list
addLong(long) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Add long (64-bit integer) value at the end of the list
addLore(String) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
Add a lore line to the item stack.
addMotion(double, double, double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Set entity's server-sided motion.
addShort(short) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Add short (16-bit integer) value at the end of the list
addSteeringOffset(float, float, float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
Gets the steering offset of the NPC.
addString(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Add string value at the end of the list
addXp(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
Add experience points to this player.
amplitudes(double) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
Changes the amplitudes of this trackpad fields, i.e. how much value changes when moving the cursor horizontally.
amplitudes(double, double, double) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
Changes the amplitudes of this trackpad fields, i.e. how much value changes when moving the cursor horizontally.
anchor(float) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set horizontal and vertical alignment anchor.
anchor(float, float) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set horizontal and vertical alignment anchor.
anchor(float) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
Set both X and Y anchor point of this graphic object.
anchor(float, float) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
Set X and Y anchor point of this graphic object individually.
anchorX(float) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set horizontal alignment anchor.
anchorX - Variable in class mchorse.mappet.api.ui.components.UILabelComponent
 
anchorX - Variable in class mchorse.mappet.client.gui.utils.graphics.Graphic
 
anchorX(float) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
Set X anchor point of this graphic object.
anchorY(float) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set vertical alignment anchor.
anchorY - Variable in class mchorse.mappet.api.ui.components.UILabelComponent
 
anchorY - Variable in class mchorse.mappet.client.gui.utils.graphics.Graphic
 
anchorY(float) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
Set Y anchor point of this graphic object.
apply(GuiElement, UIContext) - Method in class mchorse.mappet.api.ui.components.UIComponent
 
apply(GuiElement, UIContext) - Method in class mchorse.mappet.api.ui.components.UILabelBaseComponent
 
applyKeybinds(GuiElement, UIContext) - Method in class mchorse.mappet.api.ui.components.UIComponent
 
applyPotion(Potion, int, int, boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Apply given potion effect on the entity for given duration, with given amplifier, and optionally with particles.
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UIButtonComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UIComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UIIconButtonComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UILabelBaseComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UILabelComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UILayoutComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UIStackComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UITextareaComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UITextboxComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UITextComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UIToggleComponent
 
applyProperty(UIContext, String, GuiElement) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
 

B

background() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Enable default background (subtle gradient of two half transparent dark colors).
background - Variable in class mchorse.mappet.api.ui.components.UIButtonComponent
 
background(int) - Method in class mchorse.mappet.api.ui.components.UIButtonComponent
Change button's background color by providing hex RGB.
background - Variable in class mchorse.mappet.api.ui.components.UILabelComponent
 
background(int) - Method in class mchorse.mappet.api.ui.components.UILabelComponent
Change background color of this label component by providing hex ARGB.
background - Variable in class mchorse.mappet.api.ui.components.UIStringListComponent
 
background() - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
Set component's solid color background.
background(int) - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
Set component's solid color background.
box(double, double, double, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Create a bounding box.
button(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a button UI component into UI being built by this builder.

C

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.

D

damage(float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Inflict some damage on this entity (use IScriptEntity.kill() to kill the entity though).
damageAs(IScriptEntity, float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Damage this entity as given entity was the source of attack.
damageWithItemsAs(IScriptPlayer) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Damage this entity as given player was the source of the attack with its equipment.
debug(String) - Method in interface mchorse.mappet.api.scripts.user.logs.IMappetLogger
Logging a message with DEBUG level.
decline(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetQuests
Remove the quest from these quests by given ID.
DELAY - Static variable in class mchorse.mappet.api.ui.components.UIComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIButtonComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIIconButtonComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UILabelBaseComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UILabelComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UILayoutComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIParentComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIStackComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UITextboxComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UITextComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIToggleComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
 
deserializeNBT(NBTTagCompound) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
 
dismount() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Dismount this entity from the entity it's riding.
displayMorph(AbstractMorph, int, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Display a world morph to all players that see this entity (including themselves).
displayMorph(AbstractMorph, int, double, double, double, boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Display a world morph to all players that see this entity (including themselves) with toggleable following rotation.
displayMorph(AbstractMorph, int, double, double, double, float, float, boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Display a world morph to all players that see this entity (including themselves) toggleable following rotation and rotation offsets.
displayMorph(AbstractMorph, int, double, double, double, float, float, boolean, IScriptPlayer) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Display a world morph to given player that sees this entity toggleable following rotation and rotation offsets.
displayMorph(AbstractMorph, int, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Display a world morph to all players around 64 blocks away from given point.
displayMorph(AbstractMorph, int, double, double, double, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Display a world morph to all players at given point.
displayMorph(AbstractMorph, int, double, double, double, float, float) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Display a world morph to all players at given point with rotation.
displayMorph(AbstractMorph, int, double, double, double, float, float, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Display a world morph to all players at given point with rotation some blocks away in this world.
displayMorph(AbstractMorph, int, double, double, double, float, float, int, IScriptPlayer) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Display a world morph to all players at given point with rotation some blocks away in this world only to given player.
distance - Variable in class mchorse.mappet.api.ui.components.UIMorphComponent
 
distance(float) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
Change camera distance from camera orbit position in the morph component.
doesLookAround() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
Gets the status of the NPC's idle look around behavior.
doesLookAtPlayer() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
Gets the status of the NPC's behavior to look at the player.
doesWander() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
Gets the wandering status of the NPC.
draw(GuiContext, Area) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
 
drawGraphic(Area) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
 
dropItem(int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Drop the item an entity is holding.
dropItem() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Drop one item of what the entity is holding.
dropItem(IScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Drop an item of the entity even if it is not holding it.
dropItemStack(IScriptItemStack, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Drop item stack at given XYZ position with no velocity applied.
dropItemStack(IScriptItemStack, double, double, double, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Drop an item stack at given XYZ position in this world with desired velocity.
dump(Object) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Dump the simple representation of given non-JS object into the string (to see what fields and methods are available for use).
dump(Object, boolean) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Dump given non-JS object into the string (to see what fields and methods are available for use).
dumpJSON() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
Dumps to a JSON String.

E

editing - Variable in class mchorse.mappet.api.ui.components.UIMorphComponent
 
editing() - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
Enable an ability for players to pick or edit the morph.
editing(boolean) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
Toggle an ability for players to pick or edit the morph.
enabled - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
enabled(boolean) - Method in class mchorse.mappet.api.ui.components.UIComponent
Toggle component's user input.
entityExists(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
Check if an entity with given UUID exists.
equals(ScriptItemStack) - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
Check if this item stack is equal to another item stack.
equals(INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
Check if this compound is equal to given compound (order of keys doesn't matter).
error(String) - Method in interface mchorse.mappet.api.scripts.user.logs.IMappetLogger
Logging a message with ERROR level.
executeCommand(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Executes a command as a entity.
executeCommand(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
Executes a command as a player.
executeCommand(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptEvent
Execute a command.
executeRepeatingCommand(String, int) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Executes a command at a specific frequency on an entity.
executeScript(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Execute for the entity a script with a given script name and the default function "main".
executeScript(String, String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Execute for the entity a script with a given script name.
executeScript(String, String, Object...) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Execute for the entity a script with a given script name and arguments.
executeScript(String) - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
Execute a script with a given script name and the default function "main".
executeScript(String, String) - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
Execute a script with a given script name and a specified function.
executeScript(String, String, Object...) - Method in interface mchorse.mappet.api.scripts.user.IScriptServer
Execute a script with a given script name, a specified function and arguments.
explode(double, double, double, float) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Make an explosion in this world at given coordinates, and distance that destroys blocks, damages entities but not places fire.
explode(double, double, double, float, boolean, boolean) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Make an explosion in this world at given coordinates, and distance with options to place fire and destroy blocks.
explode(IScriptEntity, double, double, double, float, boolean, boolean) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Make an explosion in this world at given coordinates, distance, and entity that caused the explosion.

F

fill(IScriptBlockState, int, int, int, int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Fill a 3D area with a block.
fillTileEntities(int, int, int, int, int, int, IScriptBlockState, INBTCompound) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Fills a range with tile entities.
follow(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptNpc
Make NPC follow a target.
format(String, Object...) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Formates strings (placeholders).
fov - Variable in class mchorse.mappet.api.ui.components.UIMorphComponent
 
fov(float) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
Change camera Field of View in the morph component.
fromNBT(NBTTagCompound) - Static method in class mchorse.mappet.client.gui.utils.graphics.Graphic
 

G

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.

H

h - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
h(int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set height in pixels.
h(int) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
Set height in pixels.
handleChanges(UIContext, NBTTagCompound, GuiElement) - Method in class mchorse.mappet.api.ui.components.UIComponent
 
has(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetQuests
Check whether these quests have a quest by given ID.
has(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
Check whether state by given ID exists.
has(String) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
Check whether this NBT compound has a value by given key.
has(int) - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Check whether this list has an element at given index (instead of checking manually for index to be within 0..size-1 range)
hasBackground - Variable in class mchorse.mappet.api.ui.components.UILabelBaseComponent
 
hasCollision(IScriptWorld, int, int, int) - Method in interface mchorse.mappet.api.scripts.user.blocks.IScriptBlockState
Check whether given block state has collision boxes.
hasCustomName() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptInventory
Whether this inventory has a name.
hasData() - Method in interface mchorse.mappet.api.scripts.user.items.IScriptItemStack
Check whether an item stack has an NBT compound tag.
hasInventory(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Check whether there is an inventory tile entity at given XYZ.
hasPotion(Potion) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Check whether given potion effect is present on this entity.
hasTileEntity(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Whether a tile entity is present at given XYZ.
horizontal - Variable in class mchorse.mappet.api.ui.components.UILayoutComponent
 
horizontal() - Method in class mchorse.mappet.api.ui.components.UILayoutComponent
Enables horizontal mode.
hover - Variable in class mchorse.mappet.client.gui.utils.graphics.Graphic
 
hoverOnly() - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
Set this graphic to display only when when mouse is over it.

I

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
How many components per row that should be placed within IMappetUIBuilder.grid(int) layout type.

K

keybind(int, String, String) - Method in class mchorse.mappet.api.ui.components.UIComponent
Add a keybind with no modifiers.
keybind(int, String, String, boolean) - Method in class mchorse.mappet.api.ui.components.UIComponent
Add a keybind with optional Control modifier.
keybind(int, String, String, boolean, boolean) - Method in class mchorse.mappet.api.ui.components.UIComponent
Add a keybind with optional Control and/or Shift modifier(s).
keybind(int, String, String, boolean, boolean, boolean) - Method in class mchorse.mappet.api.ui.components.UIComponent
Add a keybind optionally with Control, Shift, and Alt key modifiers (i.e. while holding).
keybinds - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
keys() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetStates
Get IDs of all states.
keys() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTCompound
Get all keys.
kill() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Kill this entity from the server by inflicting lots of damage (similar to /kill command).

L

label(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a label UI component into UI being built by this builder.
label - Variable in class mchorse.mappet.api.ui.components.UILabelBaseComponent
 
label(String) - Method in class mchorse.mappet.api.ui.components.UILabelBaseComponent
Set label for label, toggle and text UI components, or change the input value for textbox and textarea components.
labelAnchor(float) - Method in class mchorse.mappet.api.ui.components.UILabelComponent
Change text's anchor point which determines where text will be rendered relative to component's frame both vertically and horizontally.
labelAnchor(float, float) - Method in class mchorse.mappet.api.ui.components.UILabelComponent
Change text's anchor point which determines where text will be rendered relative to component's frame, with separate vertical and horizontal anchors.
layout() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a layout UI component into UI being built by this builder.
layoutType - Variable in class mchorse.mappet.api.ui.components.UILayoutComponent
 
length() - Method in class mchorse.mappet.api.scripts.user.data.ScriptVector
 
limit(double, double) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
Convenience method that allows to set minimum and maximum, i.e. value range, that this trackpad field can accept.
limit(double, double, boolean) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
Convenience method that allows to set minimum, maximum, and integer options that this trackpad field can accept.
loadFromFile(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetSchematic
Uses to get schematic from file.
loadFromWorld(int, int, int, int, int, int) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetSchematic
Uses to copy blocks from world to schematic.
lockPosition(double, double, double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Lock the entity's position.
lockRotation(float, float, float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Lock the entity's rotation.

M

margin(int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set margin to all sides.
margin - Variable in class mchorse.mappet.api.ui.components.UILayoutComponent
 
marginBottom - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
marginBottom(int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set bottom margin.
marginLeft - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
marginLeft(int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set left margin.
marginRight - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
marginRight(int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set right margin.
marginTop - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
marginTop(int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set top margin.
matrix3() - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Create an identity 3x3 matrix.
matrix3(Matrix3d) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Copy a 3x3 matrix.
matrix4() - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Create an identity 4x4 matrix.
matrix4(Matrix4d) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Copy a 4x4 matrix.
max - Variable in class mchorse.mappet.api.ui.components.UITrackpadComponent
 
max(double) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
Set the maximum that this trackpad component can let the user pick.
maxLength - Variable in class mchorse.mappet.api.ui.components.UITextboxComponent
 
maxLength(int) - Method in class mchorse.mappet.api.ui.components.UITextboxComponent
Change component's max length (how many character max can be inputted).
maxX - Variable in class mchorse.mappet.api.scripts.user.data.ScriptBox
 
maxY - Variable in class mchorse.mappet.api.scripts.user.data.ScriptBox
 
maxZ - Variable in class mchorse.mappet.api.scripts.user.data.ScriptBox
 
mchorse.mappet.api.scripts.user - package mchorse.mappet.api.scripts.user
This section covers main Scripting API.
mchorse.mappet.api.scripts.user.blocks - package mchorse.mappet.api.scripts.user.blocks
This section covers Blocks.
mchorse.mappet.api.scripts.user.data - package mchorse.mappet.api.scripts.user.data
 
mchorse.mappet.api.scripts.user.entities - package mchorse.mappet.api.scripts.user.entities
This section covers Entities.
mchorse.mappet.api.scripts.user.items - package mchorse.mappet.api.scripts.user.items
This section covers Items.
mchorse.mappet.api.scripts.user.logs - package mchorse.mappet.api.scripts.user.logs
 
mchorse.mappet.api.scripts.user.mappet - package mchorse.mappet.api.scripts.user.mappet
Welcome to Mappet's in-game scripting documentation!
mchorse.mappet.api.scripts.user.nbt - package mchorse.mappet.api.scripts.user.nbt
This section covers NBT.
mchorse.mappet.api.ui.components - package mchorse.mappet.api.ui.components
UI API is an Application Programming Inteface (API) which allows you to create custom graphical User Intefaces (UI).
mchorse.mappet.client.gui.utils.graphics - package mchorse.mappet.client.gui.utils.graphics
 
min - Variable in class mchorse.mappet.api.ui.components.UITrackpadComponent
 
min(double) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
Set the minimum that this trackpad component can let the user pick.
minX - Variable in class mchorse.mappet.api.scripts.user.data.ScriptBox
 
minY - Variable in class mchorse.mappet.api.scripts.user.data.ScriptBox
 
minZ - Variable in class mchorse.mappet.api.scripts.user.data.ScriptBox
 
morph(AbstractMorph) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a morph UI component into UI being built by this builder.
morph(AbstractMorph, boolean) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a morph UI component into UI, with a flag whether the player can pick or edit the morph, being built by this builder.
morph - Variable in class mchorse.mappet.api.ui.components.UIMorphComponent
 
morph(AbstractMorph) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
Set display morph.
mount(IScriptEntity) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Mount this entity to given entity.
moveTo(String, int, double, double, double, boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Moves the entity to the specified position (x, y, z) with the given interpolation type and duration.
multiply(double) - Method in class mchorse.mappet.api.scripts.user.data.ScriptVector
 

N

noBackground() - Method in class mchorse.mappet.api.ui.components.UIButtonComponent
Disable button's background.
noBackground() - Method in class mchorse.mappet.api.ui.components.UITextareaComponent
Disable textarea's background.
noBackground() - Method in class mchorse.mappet.api.ui.components.UITextboxComponent
Disable textbox's background.
normal - Variable in class mchorse.mappet.api.ui.components.UITrackpadComponent
 
normalize() - Method in class mchorse.mappet.api.scripts.user.data.ScriptVector
 
notClosable() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Disable an ability for players to manually close opened screens built with an API by pressing escape.

O

observe(IScriptEntity) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Makes the entity observe the given entity.
offset(double, double, double) - Method in class mchorse.mappet.api.scripts.user.data.ScriptBox
Offsets the box by given coordinates function main(c) { var box = mappet.box(-10, 4, -10, 10, 6, 10); box.offset(10, 0, 10); c.send(box.toString()); // ScriptBox(0.0, 4.0, 0.0, 20.0, 6.0, 20.0) }
openUI(IMappetUIBuilder) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
Open UI for this player.
openUI(IMappetUIBuilder, boolean) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
Open UI for this player with default data populated.

P

padding - Variable in class mchorse.mappet.api.ui.components.UILayoutComponent
 
paused(boolean) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Toggle pausing of this UI screen.
pixels - Variable in class mchorse.mappet.client.gui.utils.graphics.Graphic
 
place(int, int, int, boolean, boolean) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetSchematic
Places schematic's blocks into the world.
place(int, int, int, boolean) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetSchematic
Places schematic's blocks into the world.
place(int, int, int) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetSchematic
Places schematic's blocks into the world.
playScene(String) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
Plays an Aperture scene for this player.
playSound(String, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
Play a sound event only to this player.
playSound(String, String, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
Play a sound event only to this player at specific sound channel.
playSound(String, String, double, double, double, float, float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
Play a sound event only to this player with volume and pitch at specific channel.
playSound(String, double, double, double, float, float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
Play a sound event only to this player with volume and pitch.
playSound(String, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Play a sound event in the world.
playSound(String, double, double, double, float, float) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Play a sound event in the world with volume and pitch.
playStaticSound(String, float, float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
Play a sound event to this player stationary.
playStaticSound(String, String, float, float) - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptPlayer
Play a sound event to this player stationary at specific channel.
populateData(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIButtonComponent
 
populateData(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIClickComponent
 
populateData(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIComponent
 
populateData(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIIconButtonComponent
 
populateData(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
 
populateData(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIStackComponent
 
populateData(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
 
populateData(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UITextareaComponent
 
populateData(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UITextboxComponent
 
populateData(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UIToggleComponent
 
populateData(NBTTagCompound) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
 
pos - Variable in class mchorse.mappet.api.ui.components.UIMorphComponent
 
position(float, float, float) - Method in class mchorse.mappet.api.ui.components.UIMorphComponent
Change camera's orbit position in the morph component.
primary - Variable in class mchorse.mappet.client.gui.utils.graphics.Graphic
 

R

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.

S

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
Set a block at XYZ, use IScriptFactory.createBlockState(String, int) to get the block state.
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.

T

testForBlock(int, int, int, String, int) - Method in interface mchorse.mappet.api.scripts.user.IScriptWorld
Test for a specific block and meta in a specific coordinates.
text(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a text UI component into UI being built by this builder.
text(String, int, int, int) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
Draw a text label relative to graphics component's frame.
text(String, int, int, int, float, float) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
Draw a text label with an anchor relative to graphics component's frame.
text(String, int, int, int, int, int, float, float) - Method in class mchorse.mappet.api.ui.components.UIGraphicsComponent
Draw a text label with an anchor relative to graphics component's frame.
textAnchor - Variable in class mchorse.mappet.api.ui.components.UITextComponent
 
textAnchor(float) - Method in class mchorse.mappet.api.ui.components.UITextComponent
Change text's anchor point which determines where text will be rendered relative to component's frame horizontally.
textarea() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a textarea UI component into UI being built by this builder.
textarea(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a textarea UI component into UI, with default value filled, being built by this builder.
textbox() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a textbox UI component into UI being built by this builder.
textbox(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a textbox UI component into UI, with default value filled, being built by this builder.
textbox(String, int) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a textbox UI component into UI, with default value filled and maximum length, being built by this builder.
toArray() - Method in interface mchorse.mappet.api.scripts.user.nbt.INBTList
Turns a NBT list into a Java array.
toArrayString() - Method in class mchorse.mappet.api.scripts.user.data.ScriptVector
Convert this vector to an array string {@code function main(c) { var subject = c.getSubject(); var subjectPosition = subject.getPosition(); c.send("The player is at " + subjectPosition.toArrayString() + "!")
toggle(String) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a toggle UI component into UI being built by this builder.
toggle(String, boolean) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a toggle UI component into UI, with default toggled state, being built by this builder.
toNBT(Object) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Converts an object to an INBTCompound representation.
toNBT(Graphic) - Static method in class mchorse.mappet.client.gui.utils.graphics.Graphic
 
tooltip - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
tooltip(String) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set a tooltip that will be displayed at the bottom of component's frame.
tooltip(String, int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set a tooltip that will be displayed at specified side of component's frame.
tooltipDirection - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
toString() - Method in class mchorse.mappet.api.scripts.user.data.ScriptBox
 
toString() - Method in class mchorse.mappet.api.scripts.user.data.ScriptVector
 
trackpad() - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a trackpad UI component into UI being built by this builder.
trackpad(double) - Method in interface mchorse.mappet.api.scripts.user.mappet.IMappetUIBuilder
Create and insert a trackpad UI component into UI, with default filled value, being built by this builder.

U

UIButtonComponent - Class in mchorse.mappet.api.ui.components
Clickable button component.
UIButtonComponent() - Constructor for class mchorse.mappet.api.ui.components.UIButtonComponent
 
UIClickComponent - Class in mchorse.mappet.api.ui.components
Click area component.
UIClickComponent() - Constructor for class mchorse.mappet.api.ui.components.UIClickComponent
 
UIComponent - Class in mchorse.mappet.api.ui.components
Base UI component.
UIComponent() - Constructor for class mchorse.mappet.api.ui.components.UIComponent
 
UIGraphicsComponent - Class in mchorse.mappet.api.ui.components
Graphics UI component.
UIGraphicsComponent() - Constructor for class mchorse.mappet.api.ui.components.UIGraphicsComponent
 
UIIconButtonComponent - Class in mchorse.mappet.api.ui.components
Clickable icon button component.
UIIconButtonComponent() - Constructor for class mchorse.mappet.api.ui.components.UIIconButtonComponent
 
UILabelBaseComponent - Class in mchorse.mappet.api.ui.components
 
UILabelBaseComponent() - Constructor for class mchorse.mappet.api.ui.components.UILabelBaseComponent
 
UILabelComponent - Class in mchorse.mappet.api.ui.components
Label UI component.
UILabelComponent() - Constructor for class mchorse.mappet.api.ui.components.UILabelComponent
 
UILayoutComponent - Class in mchorse.mappet.api.ui.components
Layout UI component.
UILayoutComponent() - Constructor for class mchorse.mappet.api.ui.components.UILayoutComponent
 
UIMorphComponent - Class in mchorse.mappet.api.ui.components
Morph UI component.
UIMorphComponent() - Constructor for class mchorse.mappet.api.ui.components.UIMorphComponent
 
UIParentComponent - Class in mchorse.mappet.api.ui.components
 
UIParentComponent() - Constructor for class mchorse.mappet.api.ui.components.UIParentComponent
 
UIStackComponent - Class in mchorse.mappet.api.ui.components
Item stack (slot) UI component.
UIStackComponent() - Constructor for class mchorse.mappet.api.ui.components.UIStackComponent
 
UIStringListComponent - Class in mchorse.mappet.api.ui.components
String list UI component.
UIStringListComponent() - Constructor for class mchorse.mappet.api.ui.components.UIStringListComponent
 
UITextareaComponent - Class in mchorse.mappet.api.ui.components
Text area UI component.
UITextareaComponent() - Constructor for class mchorse.mappet.api.ui.components.UITextareaComponent
 
UITextboxComponent - Class in mchorse.mappet.api.ui.components
Textbox UI component.
UITextboxComponent() - Constructor for class mchorse.mappet.api.ui.components.UITextboxComponent
 
UITextComponent - Class in mchorse.mappet.api.ui.components
Text UI component.
UITextComponent() - Constructor for class mchorse.mappet.api.ui.components.UITextComponent
 
UIToggleComponent - Class in mchorse.mappet.api.ui.components
Toggle UI component.
UIToggleComponent() - Constructor for class mchorse.mappet.api.ui.components.UIToggleComponent
 
UITrackpadComponent - Class in mchorse.mappet.api.ui.components
Trackpad UI component.
UITrackpadComponent() - Constructor for class mchorse.mappet.api.ui.components.UITrackpadComponent
 
unlockPosition() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Unlock the entity's position.
unlockRotation() - Method in interface mchorse.mappet.api.scripts.user.entities.IScriptEntity
Unlock the entity's rotation.
updateDelay - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
updateDelay(int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set update delay in milliseconds (1000 = 1 second).

V

value - Variable in class mchorse.mappet.api.ui.components.UITrackpadComponent
 
value(double) - Method in class mchorse.mappet.api.ui.components.UITrackpadComponent
Set the value that of trackpad component.
values - Variable in class mchorse.mappet.api.ui.components.UIStringListComponent
 
values(String...) - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
Replace values within this string list.
values(List<String>) - Method in class mchorse.mappet.api.ui.components.UIStringListComponent
Replace values within this string list.
vector(double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Create a ScriptVector.
vector2() - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Create an empty (0, 0) 2D vector.
vector2(double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Create a 2D vector.
vector2(Vector2d) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Copy a 2D vector.
vector3() - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Create an empty (0, 0, 0) 3D vector.
vector3(double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Create a 3D vector.
vector3(Vector3d) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Copy a 3D vector.
vector4() - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Create a 4D vector.
vector4(double, double, double, double) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Create a 4D vector.
vector4(Vector4d) - Method in interface mchorse.mappet.api.scripts.user.IScriptFactory
Copy a 4D vector.
visible - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
visible(boolean) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set component's visibility.

W

w - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
w(int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set width in pixels.
w(int) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
Set width in pixels.
warning(String) - Method in interface mchorse.mappet.api.scripts.user.logs.IMappetLogger
Logging a message with WARNING level.
weak - Variable in class mchorse.mappet.api.ui.components.UITrackpadComponent
 
wh(int, int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set width and height in pixels.
wh(int, int) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
Set width and height in pixels.
width - Variable in class mchorse.mappet.api.ui.components.UILayoutComponent
 
width(int) - Method in class mchorse.mappet.api.ui.components.UILayoutComponent
Per component width (in pixels) that should be sustained within IMappetUIBuilder.grid(int) layout type.

X

x - Variable in class mchorse.mappet.api.scripts.user.data.ScriptVector
X coordinate
x - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
x(int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set X in pixels relative to parent component.
x(int) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
Set X in pixels relative to parent component.
xy(int, int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set X and Y in pixels relative to parent component.
xy(int, int) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
Set X and Y in pixels relative to parent component.

Y

y - Variable in class mchorse.mappet.api.scripts.user.data.ScriptVector
Y coordinate
y - Variable in class mchorse.mappet.api.ui.components.UIComponent
 
y(int) - Method in class mchorse.mappet.api.ui.components.UIComponent
Set Y in pixels relative to parent component.
y(int) - Method in class mchorse.mappet.client.gui.utils.graphics.Graphic
Set Y in pixels relative to parent component.

Z

z - Variable in class mchorse.mappet.api.scripts.user.data.ScriptVector
Z coordinate
A B C D E F G H I K L M N O P R S T U V W X Y Z 
Skip navigation links