Jump to content

OxygenRequired

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by OxygenRequired

  1. So I've been making blockstate properties with an enum, but ran into trouble with the naming conventions. I followed vanilla code, i.e. all-caps for enum names and then all lowercase for the string values. However, I soon realized that the all-caps naming of the enum was causing the error, so I guess I'm asking as to why... For example, when I was looking through vanilla code to see how they did Enum properties, so in driptsone's case: public enum DripstoneThickness implements StringRepresentable { TIP_MERGE("tip_merge"), TIP("tip"), FRUSTUM("frustum"), MIDDLE("middle"), BASE("base"); private final String name; private DripstoneThickness(String p_156018_) { this.name = p_156018_; } public String toString() { return this.name; } public String getSerializedName() { return this.name; } } the enums are named in all capitals, but if I do the same format, it would throw an error. Am I missing something obvious or is there a reason it this? Thanks! [EDIT] I somehow figured it out, please ignore !
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.