Important Change: Definitions.ClothingDefinition now returns int values for getInsulation(), getProtection() and getAbsorbency()
Changelog:
- General
- [New] Vector4f
- [New] Clothes object (for players and npcs)
- [New] Support for Dependencies when compiling on the fly
- [Bugfix] Fixed converting block/chunk position to global position and vice versa
- [Bugfix] mult()/multLocal() in Vector2 and Vector3
- Events
- [New] InputEvent (System.in)
- [New] PlantGrowEvent
- [New] ItemElementCollisionEvent
- [New] PlayerDropItemEvent
- [New] PlayerStartFishingEvent
- [New] PlayerStopFishingEvent
- [New] PlayerCatchFishEvent
- [New] PlayerElementCollisionEvent
- [New] PlayerDamageEvent (covers all types of damage)
- [New] PlayerWorldHitEvent
- [New] PlayerConstructionHitEvent
- [New] PlayerObjectHitEvent
- [New] PlayerVegetationHitEvent
- [New] PlayerCreativeRemoveConstructionEvent
- [New] PlayerCreativeRemoveObjectEvent
- [New] PlayerCreativeRemoveVegetationEvent
- [New] PlayerChangeEquippedItemEvent
- [New] PlayerChangeScreenResolutionEvent
- [New] PlayerPrivateMessageEvent (just the event, actual message is still hidden)
- [New] PlayerEnterVehicleEvent (WIP)
- [New] PlayerExitVehicleEvent (WIP)
- [Bugfix] PlayerConnectEvent not being triggered in singleplayer
- GuiElement
- [New] Overridable "onClick()" method (no need for event listener)
- GuiFileBrowser
- [New] Overridable "onFileSelect()" method (no need for event listener)
- GuiTextField
- [New] Overridable "onInput()" method (no need for event listener)
- WorldElement
- [New] setAttribute(), hasAttribute(), getAttribute(), deleteAttribute()
- World3DModel
- [New] setListenForCollisions(), isListeningForCollisions()
- [New] Overridable "onInteraction()", "onPlayerCollision()" and "onItemCollision()" methods (no need for event listener)
- PlayerSetSignTextEvent
- [New] setLine()
- [Bugfix] Text not being set correctly
- NpcDeathEvent
- [New] getCause()
- PlayerRespawnEvent
- [New] setKeepInventory()
- [New] isKeepingInventory()
- PlayerInventoryToChestEvent/PlayerChestToInventoryEvent
- [New] getAmount()
- PlayerObjectEvent
- [Bugfix] getObjectPosition() returned wrong y coordinate
- [Bugfix] getObjectPositionY() returned wrong coordinate
- PlayerPlaceObjectEvent
- [New] setObjectPosition()
- [New] setObjectRotation()
- PlayerConstructionEvent
- [New] getConstructionDefinition()
- [Bugfix] getConstructionPosition() returned wrong y coordinate
- [Bugfix] getConstructionPositionY() returned wrong coordinate
- PlayerPlaceConstructionEvent
- [New] setConstructionPosition()
- [New] setConstructionRotation()
- [New] setConstructionSize()
- PlayerVegetationEvent
- [Bugfix] getPlantPosition() returned wrong y coordinate
- [Bugfix] getPlantPositionY() returned wrong coordinate
- PlayerPlaceVegetationEvent
- [New] isGrowable()
- [New] setGrowthTime()
- [New] getGrowthTime()
- [New] setPlantPosition()
- [New] setPlantRotation()
- PlayerWorldEditEvent
- [New] getGlobalBlockPositionX()
- [New] getGlobalBlockPositionY()
- [New] getGlobalBlockPositionZ()
- World
- [New] changeObjectStatus()
- [New] removeObject()
- [New] removeVegetation()
- [New] fixChunkBorders()
- Player
- [New] setName()
- [New] getClothes()
- [New] getStamina()
- [New] getScreenResolutionX()
- [New] getScreenResolutionY()
- [New] getOption()
- [New] setEquippedItem()
- [New] getCurrentAreas()
- [New] getArmor()
- [New] getMaxArmor()
- [New] getMaxHealth()
- [New] isFishing()
- [New] isInVehicle()
- [Change] playSound() minDistance and maxDistance
- [Bugfix] stopSound() caused crash (when using custom sounds)
- Chest
- [New] removeItem(itemid, variation, amount)
- WorldItem
- [New] applyPhysicalImpulse()
- Npc
- [New] getClothes()
- [New] setAttribute(), hasAttribute(), getAttribute(), deleteAttribute()
- [Change] getInfoID() returns the corpse chest id if the npc is dead
- Definitions
- [New] ConstructionDefinition
- [New] getConstructionDefinition()
- [New] getAllConstructionDefinitions()
- Definitions.PlantDefinition
- [New] isTree(), isFruitTree(), isCrop(), isWaterPlant()
- [New] getSaplingItemID(), getSaplingItemDefinition()
- RayCastResult
- [New] getElementPosition() (gets the actual element world position)
- [New] getElementTypeID()
- [New] getCollisionInfo()
- CollisionType
- [New] Chopped trees, items, vehicles and API elements
- Area
- [New] Construtor Area(minX, minY, minZ, maxX, maxY, maxZ)
- [New] Setters to change area coordinates (star/end positions)
- [New] setAttribute(), hasAttribute(), getAttribute(), deleteAttribute()
- [Bugfix] intersects()
- Server
- [New] getBuild()
- [New] getMaxPlayerCount()
- Utils
- [New] MathUtils: static TWO_PI (360°) and QUARTER_PI (45°) value
- [New] StringUtils: removeAllNonWorldCharacters()
- [New] StringUtils: removeAllWhitespaces()
- [New] StringUtils: removeAllLeadingWhitespaces()
- [New] StringUtils: removeAllTrailingWhitespaces()
- [New] StringUtils: getLines()
______________________________________________
Latest Javadoc: https://javadoc.rising-world.net/
Latest Download: https://download.rising-world.net/api/PluginAPI_0.9.4.zip