Yarn: Registry.STRUCTURE_PIECE -> Registry.STRUCTURE_PIECE_TYPE

Created on 20 Oct 2019  ·  6Comments  ·  Source: FabricMC/yarn

Registry.STRUCTURE_PIECE wants a StructurePieceType, which is a factory for creating StructurePieces. The name should be changed to STRUCTURE_PIECE_TYPE to reflect this (as is the case with the BlockEntityType/EntityType registries).

enhancement refactor vote

Most helpful comment

Well, structure_piece in the registry registry are hardcoded strings from mojang, iirc. I say we keep to Registry.STRUCTURE_PIECE since that's the standard for anything registered.

All 6 comments

What is the name of the registry in the registry of registries? Probably structure_piece, in which case the name should remain.

Is that because changing to STRUCTURE_PIECE_TYPE would require changing structure_piece to structure_piece_type, which would mess things up?
edit: and yes, it is structure_piece in the registry

I don't think the names in registry are auto. So yes, we can do this change. Will mark this for a vote.

Well, structure_piece in the registry registry are hardcoded strings from mojang, iirc. I say we keep to Registry.STRUCTURE_PIECE since that's the standard for anything registered.

fyi we already named the thing in the registry structure piece type.

The result of this vote seems conclusive

Was this page helpful?
0 / 5 - 0 ratings