Skip to content

Creating a entity state class

Olafcio1 edited this page Jul 13, 2026 · 1 revision

This guide assumes you've already created and setup an Avoid project.


§ Making a entity state class with the Avoid Framework


  1. Create a java class;
    You can pick any location within your project source code directory.

  2. Paste the following code:

    package com.example.avoidtmpl;
    
    public class HerobrineEntityState {}

    Of course you need to replace the class name and package.

  3. Add any state fields;
    That's it, really... Minecraft needed state classes in their API, so I did that too.


Avoid Framework


    🏚️ 1. Home
    📽️ 2. Creating your mod
    🌄 3. Adding assets to your mod
    🧊 4. Creating a block
    💧 5. Creating a fluid
    ✏️ 6. Creating an item
    🎯 7. Creating an entity selector
    🤖 8. Creating a command
    ⌨️ 9. Creating a keybind
    🐺 10. Creating an entity
    🌫️ 11. Creating a fog
    🔩 12. Creating an item component
    🔮 13. Creating an effect
    📚 14. Language support & adding libraries
    🚩 15. Deprecation rules
    ⏳ 16. Loading philosophy
    🔀 17. Adding mixins
    🌀 18. Creating a subloader
    ⚙️ 19. Creating a config


Migrations


    🧳 v1.25 -> v1.26
    🧳 v1.26 -> v1.27
    🧳 v1.27 -> v1.28
    🧳 v1.31 -> v2.0

Clone this wiki locally