Changes

Jump to navigation Jump to search
→‎Other item changes: update for build 22343 (added FruitTree.TryAddFruit + Object.GetBoundingBox* + Tree.CheckForNewTexture)
Line 1,673: Line 1,673:  
| <samp>CanUseBait()</samp><br /><samp>CanUseTackle()</samp><br /><samp>GetBait()</samp><br /><samp>GetTackle()</samp><br /><samp>HasMagicBait()</samp><br /><samp>HasCuriosityLure()</samp>
 
| <samp>CanUseBait()</samp><br /><samp>CanUseTackle()</samp><br /><samp>GetBait()</samp><br /><samp>GetTackle()</samp><br /><samp>HasMagicBait()</samp><br /><samp>HasCuriosityLure()</samp>
 
| Simplifies working with the fishing rod's [[bait]] and [[tackle]].
 
| Simplifies working with the fishing rod's [[bait]] and [[tackle]].
 +
|-
 +
| <samp>FruitTree</samp>
 +
| <samp>TryAddFruit()</samp>
 +
| Add a fruit item to the tree based on [[#Custom fruit trees|its data]].
 
|-
 
|-
 
| <samp>IndoorPot</samp>
 
| <samp>IndoorPot</samp>
 
| <samp>Water()</samp>
 
| <samp>Water()</samp>
 
| Simplifies watering dirt in the [[Garden Pot|garden pot]].
 
| Simplifies watering dirt in the [[Garden Pot|garden pot]].
 +
|-
 +
| <samp>Object</samp>
 +
| <samp>GetBoundingBox()</samp><br /><samp>GetBoundingBoxAt(x, y)</samp>
 +
| Get the pixel collision area for the item placed in the world. These replace the former <samp>getBoundingBox(position)</samp> method.
 
|-
 
|-
 
| <samp>Tool</samp>
 
| <samp>Tool</samp>
 
| <samp>isScythe()</samp>
 
| <samp>isScythe()</samp>
 
| Equivalent to the previous <samp>MeleeWeapon</samp> method, to simplify common code and avoid needing to special-case <samp>MeleeWeapon</samp> items.
 
| Equivalent to the previous <samp>MeleeWeapon</samp> method, to simplify common code and avoid needing to special-case <samp>MeleeWeapon</samp> items.
 +
|-
 +
| <samp>Tree</samp>
 +
| <samp>CheckForNewTexture()</samp>
 +
| Reset the tree's texture if it would change based on [[#Custom wild trees|its data]].
 
|}
 
|}
 
</li>
 
</li>
translators
8,445

edits

Navigation menu