Nightbreak Java API
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
Nightbreak Java API
FreeMinecraftModels
/
com.magmaguy.freeminecraftmodels.scripting
/
ScriptableProp
Scriptable
Prop
public
class
ScriptableProp
extends
ScriptableEntity
Adapts a
PropEntity
for Lua scripting via the Magmacore scripting engine.
Members
Constructors
Scriptable
Prop
Link copied to clipboard
public
void
ScriptableProp
(
PropEntity
propEntity
)
Properties
ON_
DESTROY
Link copied to clipboard
public
final
static
ScriptHook
ON_DESTROY
ON_
LEFT_
CLICK
Link copied to clipboard
public
final
static
ScriptHook
ON_LEFT_CLICK
ON_
PROJECTILE_
HIT
Link copied to clipboard
public
final
static
ScriptHook
ON_PROJECTILE_HIT
ON_
RIGHT_
CLICK
Link copied to clipboard
public
final
static
ScriptHook
ON_RIGHT_CLICK
prop
Entity
Link copied to clipboard
public
final
PropEntity
propEntity
Functions
build
Context
Table
Link copied to clipboard
public
LuaTable
buildContextTable
(
ScriptInstance
instance
)
clear
All
Global
Cooldowns
Link copied to clipboard
public
static
void
clearAllGlobalCooldowns
(
)
clear
Global
Cooldowns
Link copied to clipboard
public
static
void
clearGlobalCooldowns
(
PropEntity
prop
)
get
Bukkit
Entity
Link copied to clipboard
public
Entity
getBukkitEntity
(
)
get
Context
Key
Link copied to clipboard
public
String
getContextKey
(
)
get
Global
Cooldown
Store
Link copied to clipboard
public
Map
<
String
,
Long
>
getGlobalCooldownStore
(
)
get
Location
Link copied to clipboard
public
Location
getLocation
(
)
get
Prop
Entity
Link copied to clipboard
public
PropEntity
getPropEntity
(
)
get
Supported
Hooks
Link copied to clipboard
public
Set
<
ScriptHook
>
getSupportedHooks
(
)
resolve
Extra
Context
Link copied to clipboard
public
LuaValue
resolveExtraContext
(
String
key
,
ScriptInstance
instance
)
Inherited functions
get
Local
Cooldown
Store
Link copied to clipboard
public
Map
<
String
,
Long
>
getLocalCooldownStore
(
ScriptDefinition
definition
)
handle
Script
Error
Link copied to clipboard
public
boolean
handleScriptError
(
String
context
,
Exception
failure
)
is
Script
Owner
Active
Link copied to clipboard
public
boolean
isScriptOwnerActive
(
)
on
Shutdown
Link copied to clipboard
public
void
onShutdown
(
)