Skip to content

Mismap and possible mismatch with Material in mid-Indev #201

@FubyCutie

Description

@FubyCutie

Type
Field, maybe Class

Describe where the element is
net.minecraft.block.material.Material(.f1017744)

Description of the element
In indev-20100201-0025: the mentioned field is used for any block that is not lava/water. And the class in general is focused on liquids entirely.

In indev-20100201-2227: the mentioned field is used for wooden materials specifically. The class in general is now focused on Materials in general, and lava/water are defined using an extending class, with a method to check for liquid/not.

Expected name
Field: NON_LIQUID
maybe Class: LiquidState

Additional Context
The class in general seems to have been re-purposed from liquids, to generic materials, with liquids being a subset. I think there are arguments that this is anywhere between a mis-mapped field, and a mismatched class, depending on how you look at it. The field has undeniably changed purpose, a name change is necessary at least, and there's no reason it to should match to anything in particular, since there's nothing that lines up, which leads me to believe it's a mismatch too. The class is arguably doing the same thing (determining subsets of blocks and their properties), but simply changed scope massively, this is quite possibly a good match, and maybe even a good mapping too.

Least extensive suggested change: rename Material.WOOD to Material.NON_LIQUID in indev-20100201-0025 and below.

Most extensive suggested change: rematch the class net.minecraft.block.material.Material for indev-20100201-0025 and below, remap to LiquidState, and remap fields as LAVA, WATER, and NON_LIQUID

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions