public static class Tools3D.ClassPlaceMyWorld3DModel
extends java.lang.Object
implements net.risingworld.api.events.Listener
| Constructor and Description |
|---|
ClassPlaceMyWorld3DModel(net.risingworld.api.Plugin plugin,
java.lang.String assets,
de.chaoswg.Tools3D.ClassPMWModelOption[] option,
ClassPluginConfig debug)
Platzieren von 3D Objekten, Inizialiesieren.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCollisionBitmask()
Get collisionType - the collision type (bitmask).
|
float |
getMoveToSpeed()
Gets the speed (how long it should take to move the element to the target position).
|
de.chaoswg.ClassCallback.CallbackCRTi |
getOnChangePosition()
Holt die Callback Aktion für neue Position
|
de.chaoswg.ClassCallback.CallbackCRTi |
getOnPlacementAbort()
Holt die Callback Aktion für Abbrechen
|
de.chaoswg.ClassCallback.CallbackCRTi |
getOnPlacementEnter()
Holt die Callback Aktion für Bestätiegen
|
net.risingworld.api.callbacks.Callback |
getOnPlacementSave()
Holt die Callback Aktion für Finales Bestätiegen
|
float |
getTriggerDistance()
Gets the distance between the player (or more precisely, the origin of the ray) and the collision point.
|
boolean |
isPlaceWorld3DModel(net.risingworld.api.objects.Player player) |
void |
onPlayerKeyInput(net.risingworld.api.events.player.PlayerKeyEvent event) |
void |
placeWorld3DModel(net.risingworld.api.objects.Player player,
net.risingworld.api.worldelements.World3DModel world3DModel,
boolean previewForAll,
float prevAlpha,
ClassPluginOBJ modelInformation)
Platziert 3D Model
|
void |
setCollisionBitmask(int COLLISION_BITMASK)
Set collisionType - the collision type (bitmask).
|
void |
setMoveToSpeed(float moveToSpeed)
Sets the speed (how long it should take to move the element to the target position).
|
void |
setOnChangePosition(de.chaoswg.ClassCallback.CallbackCRTi onChangePosition)
Setzt die Callback Aktion für neue Position
|
void |
setOnPlacementAbort(de.chaoswg.ClassCallback.CallbackCRTi onPlacementAbrot)
Setzt die Callback Aktion für Abbrechen
|
void |
setOnPlacementEnter(de.chaoswg.ClassCallback.CallbackCRTi onPlacement)
Setzt die Callback Aktion für Bestätiegen
|
void |
setOnPlacementSave(net.risingworld.api.callbacks.Callback onPlacement)
Setzt die Callback Aktion für Finales Bestätiegen
|
void |
setTriggerDistance(float triggerDistance)
Sets the distance between the player (or more precisely, the origin of the ray) and the collision point.
|
public ClassPlaceMyWorld3DModel(net.risingworld.api.Plugin plugin,
java.lang.String assets,
de.chaoswg.Tools3D.ClassPMWModelOption[] option,
ClassPluginConfig debug)
plugin - Pluginassets - Unterverzeichnisoption - Option Enum Arraydebug - Debugpublic void setCollisionBitmask(int COLLISION_BITMASK)
COLLISION_BITMASK - Colisions Maskepublic int getCollisionBitmask()
public float getTriggerDistance()
public void setTriggerDistance(float triggerDistance)
triggerDistance - Entfernungpublic float getMoveToSpeed()
public void setMoveToSpeed(float moveToSpeed)
moveToSpeed - Geschwindigkeitpublic boolean isPlaceWorld3DModel(net.risingworld.api.objects.Player player)
player - Spielerpublic void setOnPlacementAbort(de.chaoswg.ClassCallback.CallbackCRTi onPlacementAbrot)
onPlacementAbrot - Callbackpublic de.chaoswg.ClassCallback.CallbackCRTi getOnPlacementAbort()
public void setOnPlacementEnter(de.chaoswg.ClassCallback.CallbackCRTi onPlacement)
onPlacement - Callbackpublic de.chaoswg.ClassCallback.CallbackCRTi getOnPlacementEnter()
public void setOnPlacementSave(net.risingworld.api.callbacks.Callback onPlacement)
onPlacement - Callbackpublic net.risingworld.api.callbacks.Callback getOnPlacementSave()
public void setOnChangePosition(de.chaoswg.ClassCallback.CallbackCRTi onChangePosition)
onChangePosition - Callbackpublic de.chaoswg.ClassCallback.CallbackCRTi getOnChangePosition()
public void placeWorld3DModel(net.risingworld.api.objects.Player player,
net.risingworld.api.worldelements.World3DModel world3DModel,
boolean previewForAll,
float prevAlpha,
ClassPluginOBJ modelInformation)
player - Playerworld3DModel - ModellpreviewForAll - AnzeigemodusprevAlpha - TransparenzmodelInformation - Modelldatenpublic void onPlayerKeyInput(net.risingworld.api.events.player.PlayerKeyEvent event)
event - Event