eaglercraft-1.8/patches/minecraft/net/minecraft/block/BlockHugeMushroom.edit.java

36 lines
860 B
Java

# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 4 @ 2 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
~
> CHANGE 14 : 15 @ 14 : 16
~ public static PropertyEnum<BlockHugeMushroom.EnumType> VARIANT;
> CHANGE 9 : 14 @ 9 : 10
~ public static void bootstrapStates() {
~ VARIANT = PropertyEnum.<BlockHugeMushroom.EnumType>create("variant", BlockHugeMushroom.EnumType.class);
~ }
~
~ public int quantityDropped(EaglercraftRandom random) {
> CHANGE 16 : 17 @ 16 : 17
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 61 : 64 @ 61 : 63
~ BlockHugeMushroom.EnumType[] types = values();
~ for (int i = 0; i < types.length; ++i) {
~ META_LOOKUP[types[i].getMetadata()] = types[i];
> EOF