Nightbreak Java API
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
Nightbreak Java API
MagmaCore
/
com.magmaguy.magmacore.util
/
OwnedEntityState
Owned
Entity
State
public
final
class
OwnedEntityState
implements
AutoCloseable
Optional, conditional restoration for script-owned gravity/scale changes.
Members
Functions
close
Link copied to clipboard
public
void
close
(
)
gravity
Link copied to clipboard
public
static
OwnedEntityState
gravity
(
Entity
entity
,
boolean replacement
,
Plugin
plugin
)
potion
Link copied to clipboard
public
static
OwnedEntityState
potion
(
LivingEntity
entity
,
PotionEffect
replacement
,
Plugin
plugin
)
Restores only the still-owned active potion, retaining the original effect's elapsed game ticks.
scale
Link copied to clipboard
public
static
OwnedEntityState
scale
(
LivingEntity
entity
,
double replacement
,
Plugin
plugin
)