mirror of
http://git.eaglercraft.rip/eaglercraft/eaglercraft-1.8.git
synced 2025-04-30 02:01:59 -05:00
45 lines
1.1 KiB
Java
45 lines
1.1 KiB
Java
|
|
# Eagler Context Redacted Diff
|
|
# Copyright (c) 2024 lax1dude. All rights reserved.
|
|
|
|
# Version: 1.0
|
|
# Author: lax1dude
|
|
|
|
> CHANGE 3 : 5 @ 3 : 6
|
|
|
|
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
|
|
~
|
|
|
|
> CHANGE 18 : 19 @ 18 : 20
|
|
|
|
~ public static PropertyEnum<BlockStoneSlabNew.EnumType> VARIANT;
|
|
|
|
> INSERT 14 : 18 @ 14
|
|
|
|
+ public static void bootstrapStates() {
|
|
+ VARIANT = PropertyEnum.<BlockStoneSlabNew.EnumType>create("variant", BlockStoneSlabNew.EnumType.class);
|
|
+ }
|
|
+
|
|
|
|
> CHANGE 4 : 5 @ 4 : 5
|
|
|
|
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
|
|
|
|
> CHANGE 21 : 24 @ 21 : 23
|
|
|
|
~ BlockStoneSlabNew.EnumType[] types = BlockStoneSlabNew.EnumType.META_LOOKUP;
|
|
~ for (int i = 0; i < types.length; ++i) {
|
|
~ list.add(new ItemStack(item, 1, types[i].getMetadata()));
|
|
|
|
> CHANGE 48 : 49 @ 48 : 49
|
|
|
|
~ public static final BlockStoneSlabNew.EnumType[] META_LOOKUP = new BlockStoneSlabNew.EnumType[1];
|
|
|
|
> CHANGE 39 : 42 @ 39 : 41
|
|
|
|
~ BlockStoneSlabNew.EnumType[] types = values();
|
|
~ for (int i = 0; i < types.length; ++i) {
|
|
~ META_LOOKUP[types[i].getMetadata()] = types[i];
|
|
|
|
> EOF
|