Skip to content

Commit

Permalink
Add some meta
Browse files Browse the repository at this point in the history
- remove silly meta
- add equip armor meta
- add todo note
- fix random requirements (no args are required, bracing is sufficient)
  • Loading branch information
mcmonkey4eva committed Sep 21, 2014
1 parent c19aa5e commit 03fcc53
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
Expand Up @@ -91,7 +91,6 @@ public void breakDown() {
// @Triggers when an entity spawns.
// @Context
// <context.entity> returns the dEntity that spawned.
// <npc> if the entity spawned is a NPC.
// <context.reason> returns the reason the entity spawned.
// <context.location> returns the location the entity will spawn at.
// <context.cuboids> returns a list of cuboids that the entity spawned inside.
Expand Down
Expand Up @@ -112,7 +112,23 @@ public void playerInteract(PlayerInteractEvent event) {
}
}

// TODO: Meta information!
// <--[event]
// @Events
// player equips armor
// player equips <item>
//
// @Regex on player equips (m@|i@)?\w+
//
// @Warning This event is minimally tested and unstable.
//
// @Triggers when a player equips armor, or closes their inventory after equipping new armor.
// @Context
// <context.armor> returns the dItem that was equipped.
//
// @Determine
// "CANCELLED" to stop the armor from being equipped.
//
// -->
public void playerEquipsArmorEvent(final Player player, final ItemStack item, final int replaceSlot) {

// Run this as a not-so-delayed Runnable...
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/aufdemrand/denizen/objects/dEntity.java
Expand Up @@ -750,6 +750,7 @@ else if (entity_type.name().matches("SKELETON")) {
if (data1 != null) {

// TODO: Discourage usage of + delete the below (Use properties instead!)
// TODO: Remove in 1.0
try {

// Allow creepers to be powered - replaced by EntityPowered
Expand Down
Expand Up @@ -2010,7 +2010,7 @@ public void registerCoreMembers() {
// <--[command]
// @Name Random
// @Syntax random [<#>/<commands>]
// @Required 1
// @Required 0
// @Stable stable
// @Short Selects a random choice from the following script commands.
// @Author aufdemrand, morphan1
Expand Down

0 comments on commit 03fcc53

Please sign in to comment.