Changes

5 bytes removed ,  14:16, 1 August 2022
m
Line 22: Line 22:  
|  <code>getRepairIngredient</code>  ||  <code>Ingredient</code>  ||  What ingredient can be used to repair this item.  
 
|  <code>getRepairIngredient</code>  ||  <code>Ingredient</code>  ||  What ingredient can be used to repair this item.  
 
|-
 
|-
|  <code>getTag</code>  ||  <code>Tag<Block></code>  ||  What blocks this tier can mine. This should only encompass those blocks which are specific for this tier. Any blocks below this tier will be declared while registering. The naming convention of this tag is <code><modid>:needs_<tier_name>_tool</code>.
+
|  <code>getTag</code>  ||  <code>TagKey<Block></code>  ||  What blocks this tier can mine. This should only encompass those blocks which are specific for this tier. Any blocks below this tier will be declared while registering. The naming convention of this tag is <code><modid>:needs_<tier_name>_tool</code>.
 
|-
 
|-
 
|}
 
|}
Line 48: Line 48:  
|}
 
|}
   −
{{Tip|If your tier is equivalent to another tier, then <code>Tier#getTag</code> should return an empty tag reference defined by <code>BlockTags#createOptional</code> and have the equivalent tier be placed in the <code>after</code> list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the <code>before</code> list.}}
+
{{Tip|If your tier is equivalent to another tier, then <code>Tier#getTag</code> should return an empty tag reference defined by <code>BlockTags#create</code> and have the equivalent tier be placed in the <code>after</code> list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the <code>before</code> list.}}
    
== <tt>DiggerItem</tt> ==
 
== <tt>DiggerItem</tt> ==
1

edit