-
Notifications
You must be signed in to change notification settings - Fork 11
Description
I've looked through the world.gen.structure classes and found a few of the classes and methods to have misleading or inconsistent names. It may not be desirable to do all of these renames, but the descriptions I've made can be added at the very least.
Descriptions
-
MapGenStructure.setStructureStart
Sets the StructureStart located at the provided chunk coordinates. -
MapGenStructure.getStructureStart
Gets the StructureStart located at the provided chunk coordinates
Misleading names
-
StructureStart.isSizeableStructure->*.isValid
Returns true if the generated structure is valid. -
MapGenStructureIOStructureIO->StructureLoader
Doesn't actually do any IO. Provides functions for loadingStructureStartandStructureComponentfrom an NBTCompound based on a hard coded list of start and component types.This class is interesting as the complete mapping between structure ids and the classes they correspond to is in it.
-
MapGenStructureIO.getStructureStart->*.readStructureStartFromNBT
Reads a StructureStart from an NBTCompound passed as a parameter. -
MapGenStructureIO.getStructureComponent->*.readStructureComponentFromNBT
Reads a StructureComponent from an NBTCompound passed as a parameter.
Inconsistent names
-
StructureOceanMonument.StartMonument->*.Start
For consistency with structure start classes. The classes for the other structure types are namedMapGenVillage.Start,MapGenNetherBridge.Start,MapGenStronghold.Start,MapGenScatteredFeature.Start,MapGenEndCity.StartandWoodlandMansion.Start -
ComponentScatteredFeaturePieces->StructureScatteredFeaturePieces
WoodLandMansionPieces->StructureWoodlandMansionPieces
For consistency with structure pieces classes. The classes for the other structure types are namedStructureMineshaftPieces,StructureVillagePieces,StructureNetherBridgePieces,StructureOceanMonumentPieces,StructureEndCityPieces.Structure*Pieces->*Pieceshas been done. -
StructureMineshaftPieces.registerStructurePieces->*.registerMineshaftPieces
StructureEndCityPieces.registerPieces->*.registerEndCityPieces
*StructureNetherBridge.registerNetherFortressPieces->*.registerNetherBridgePieces
For consistency with registerXPieces methods. The methods for the other structure types are nameregisterVillagePieces,registerStrongHoldPieces,registerScatteredFeaturePieces,registerOceanMonumentPieces, andregisterWoodlandMansionPieces*
An alternative is to renamewas done in NetherBridge -> NetherFortress #438MapGenNetherBridgeandStructureNetherBridgePiecesto useNetherFortressinstead ofNetherBridge. -
StructureOceanMonument->MapGenOceanMonument
WoodlandMansion->MapGenWoodlandMansion
For consistency with the other MapGen classes. The classes for the other structure types are namedMapGenVillage,MapGenNetherBridge,MapGenStronghold,MapGenScatteredFeatureandMapGenEndCity
MapGen*was renamed to*Structurein MapGenX -> StructureX #448
There is an odd one out: StructureMineshaftStart. Had it followed the same pattern as the other classes it would have been a nested class of MapGenMineshaft called Start. Maybe rename it to MapGenMineshaftStart?