Package com.ticxo.modelengine.api.model
Interface IModel
- All Known Subinterfaces:
ModeledEntity
,VFX
public interface IModel
General interface for
ModeledEntity
and VFX
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
hideFromPlayer
(org.bukkit.entity.Player player) Hide this entity from the player.
This does not unregister the player as a viewer of this entity, hence update packets would still be sent, and the entity would be visible to them when they exit and enter its render radius.boolean
Is the owner visible.void
setBaseEntityVisible
(boolean flag) Change the visibility of the owner of the model.void
showToPlayer
(org.bukkit.entity.Player player) Show this entity to the player.
This does not register the player as a viewer of this entity, hence no update packets would be sent to them.
-
Method Details
-
setBaseEntityVisible
void setBaseEntityVisible(boolean flag) Change the visibility of the owner of the model. -
isBaseEntityVisible
boolean isBaseEntityVisible()Is the owner visible. -
showToPlayer
void showToPlayer(org.bukkit.entity.Player player) Show this entity to the player.
This does not register the player as a viewer of this entity, hence no update packets would be sent to them. UseRangeManager.forceSpawn(Player)
orRangeManager.updatePlayer(Player)
to show the entity properly.- Parameters:
player
- the viewer
-
hideFromPlayer
void hideFromPlayer(org.bukkit.entity.Player player) Hide this entity from the player.
This does not unregister the player as a viewer of this entity, hence update packets would still be sent, and the entity would be visible to them when they exit and enter its render radius. UseRangeManager.removePlayer(Player)
to hide the entity properly.- Parameters:
player
- the viewer
-