Uses of Interface
com.ticxo.modelengine.api.model.ModeledEntity
Package
Description
-
Uses of ModeledEntity in com.ticxo.modelengine.api
Modifier and TypeMethodDescriptionstatic ModeledEntity
ModelEngineAPI.createModeledEntity
(BaseEntity<?> base) Create a newModeledEntity
from a custom target.
Use this when your target is not a bukkit entity, or whenDummy
does not satisfy your need.static ModeledEntity
ModelEngineAPI.createModeledEntity
(org.bukkit.entity.Entity base) Create a newModeledEntity
from a bukkit entity.
For creating player disguise, useModelEngineAPI.createModeledEntity(Player)
static ModeledEntity
ModelEngineAPI.createModeledEntity
(org.bukkit.entity.Player base) Create a newModeledEntity
from a bukkit player.
This is mainly used for disguises.abstract ModeledEntity
ModelEngineAPI.createModeledEntityImpl
(BaseEntity<?> base) static ModeledEntity
ModelEngineAPI.getModeledEntity
(UUID uuid) Retrieve the instance ofModeledEntity
associated to this UUID.
For bukkit entities, this would be their entity UUID.
ForDummy
, this would be a random UUID generated on creation.static ModeledEntity
ModelEngineAPI.getMountPair
(UUID uuid) Get the model the passenger is riding on.static ModeledEntity
ModelEngineAPI.getOrCreateModeledEntity
(org.bukkit.entity.Entity entity) Shorthand for getting theModeledEntity
of this entity, and create one if none was found.Modifier and TypeMethodDescriptionstatic void
ModelEngineAPI.registerModeledEntity
(BaseEntity<?> base, ModeledEntity model) Register aBaseEntity
-ModeledEntity
pair.
The default implementation ofModeledEntity
registers itself.static void
ModelEngineAPI.registerMountedPair
(org.bukkit.entity.Entity entity, ModeledEntity model, MountController controller) Register a passenger-vehicle pair.
A vehicle can have multiple passengers, but a passenger can only have one vehicle. -
Uses of ModeledEntity in com.ticxo.modelengine.api.model
Modifier and TypeMethodDescriptionvoid
ActiveModel.setModeledEntity
(ModeledEntity modeledEntity) Set the owner of this model.
The default implementation ofModeledEntity
calls this method onaddModel(ActiveModel, boolean)
-
Uses of ModeledEntity in com.ticxo.modelengine.api.model.mananger
Modifier and TypeMethodDescription@Nullable ModeledEntity
ModelTicker.getModeledEntity
(int id) @Nullable ModeledEntity
ModelTicker.getModeledEntity
(@Nullable UUID id) Modifier and TypeMethodDescriptionvoid
ModelTicker.registerModeledEntity
(BaseEntity<?> base, ModeledEntity entity) -
Uses of ModeledEntity in com.ticxo.modelengine.api.mount
Modifier and TypeMethodDescriptionvoid
MountPairManager.registerMountedPair
(org.bukkit.entity.Entity entity, ModeledEntity model, MountController controller) -
Uses of ModeledEntity in com.ticxo.modelengine.api.mount.controller
Modifier and TypeMethodDescriptionvoid
AbstractMountController.updateDirection
(LookController controller, ModeledEntity model) void
MountController.updateDirection
(LookController controller, ModeledEntity model) Update the look direction of the vehicle.
This method is called each movement tick of the vehicle, and is only called when the controller is used by a driver.
ExtendAbstractMountController
to use the default implementation.void
MountController.updateDriverMovement
(MoveController controller, ModeledEntity model) Action performed when the rider is controlling the vehicle as a driver.
This method is called each movement tick of the vehicle.void
MountController.updatePassengerMovement
(MoveController controller, ModeledEntity model) Action performed when the rider is controlling the vehicle as a passenger.
This method is called each movement tick of the vehicle.
Usually, only dismounting through sneaking is handled here, but there are no limits to what the passenger can do. -
Uses of ModeledEntity in com.ticxo.modelengine.api.mount.controller.flying
Modifier and TypeMethodDescriptionvoid
FlyingMountController_v16.updateDriverMovement
(MoveController controller, ModeledEntity model) void
FlyingMountController.updateDriverMovement
(MoveController controller, ModeledEntity model) void
FlyingMountForcedController.updateDriverMovement
(MoveController controller, ModeledEntity model) void
FlyingMountController_v16.updatePassengerMovement
(MoveController controller, ModeledEntity model) void
FlyingMountController.updatePassengerMovement
(MoveController controller, ModeledEntity model) void
FlyingMountForcedController.updatePassengerMovement
(MoveController controller, ModeledEntity model) -
Uses of ModeledEntity in com.ticxo.modelengine.api.mount.controller.walking
Modifier and TypeMethodDescriptionvoid
WalkingMountController.updateDriverMovement
(MoveController controller, ModeledEntity model) void
WalkingMountForcedController.updateDriverMovement
(MoveController controller, ModeledEntity model) void
WalkingMountController.updatePassengerMovement
(MoveController controller, ModeledEntity model) void
WalkingMountForcedController.updatePassengerMovement
(MoveController controller, ModeledEntity model) -
Uses of ModeledEntity in com.ticxo.modelengine.api.nms.entity
Modifier and TypeMethodDescriptionvoid
EntityHandler.hideBoundSubHitboxEntity
(ModeledEntity model, org.bukkit.entity.Entity entity) -
Uses of ModeledEntity in com.ticxo.modelengine.api.utils.data
Modifier and TypeMethodDescriptionvoid
EntityData.load
(ModeledEntity modeledEntity) void
EntityData.save
(ModeledEntity modeledEntity)