Skip to content

Migrate from prefixes to suffixes #817

Closed
@kashike

Description

@kashike

We're planning to do the following changes to make things consistent, and 1.14 is a good time to do it with the large changes.

Do note that these are only what vanilla names will use - you're free to name your own classes in your mods however you like.


Propsed change

  • Migrate from prefixes to suffixes for everything: FooBlock, FooItem, etc
    • not everything with a Block prefix is actually a block (applies elsewhere too):
      • BlockMatcher is actually a predicate
      • BlockPattern is actually a pattern that can be matched in the world
      • BlockState is actually a state of a block
    • doesn't apply to vanilla, but applies to mods who don't use packages and follow vanilla's class naming: FooBlock, FooItem are both grouped together, rather than BlockFoo [... many others ...] ItemFoo
      • while vanilla separates blocks and items into their own packages, a mod is not required to do the same
    • note that we already use suffixes for major refactors and new classes: see Biome and Feature classes for an example
    • Historical Note: This is a hold over from back before packages were a thing with MCP - we essentially faked packages by grouping class names together with prefixes

Please react with 👍 if you are in favour, and 👎 if you are not in favour.

It it HIGHLY encouraged that you read all responses to this, you can change your vote at any time up until the deadline. Please take this seriously as all results are final after the deadline.

Deadline for feedback and voting is Noon PDT Monday (29/04/2019).

ref #814

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions