tutorial:model_predicate_providers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:model_predicate_providers [2021/03/05 19:11] – Add example oroarmor | tutorial:model_predicate_providers [2022/06/01 11:48] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
For this example, let's say we have we have a custom bow item called '' | For this example, let's say we have we have a custom bow item called '' | ||
- | Inside a method, we register a '' | + | Inside a method, we register a '' |
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
- | FabricModelPredicateProviderRegistry.register(EXAMPLE_BOW, | + | ModelPredicateProviderRegistry.register(EXAMPLE_BOW, |
if (livingEntity == null) { | if (livingEntity == null) { | ||
return 0.0F; | return 0.0F; | ||
Line 20: | Line 20: | ||
}); | }); | ||
- | FabricModelPredicateProviderRegistry.register(EXAMPLE_BOW, | + | ModelPredicateProviderRegistry.register(EXAMPLE_BOW, |
if (livingEntity == null) { | if (livingEntity == null) { | ||
return 0.0F; | return 0.0F; | ||
Line 27: | Line 27: | ||
}); | }); | ||
</ | </ | ||
+ | |||
+ | If the '' | ||
The '' | The '' | ||
- | All '' | + | All '' |
Taking a closer look at the '' | Taking a closer look at the '' |
tutorial/model_predicate_providers.1614971507.txt.gz · Last modified: 2021/03/05 19:11 by oroarmor