eaglercraft-1.8/patches/minecraft/net/minecraft/block/BlockNewLog.edit.java
2022-12-25 01:12:28 -08:00

32 lines
649 B
Java

# Eagler Context Redacted Diff
# Copyright (c) 2022 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> DELETE 2 @ 2 : 3
> CHANGE 3 : 6 @ 4 : 6
~
~ import com.google.common.base.Predicate;
~
> CHANGE 16 : 17 @ 16 : 22
~ public static PropertyEnum<BlockPlanks.EnumType> VARIANT;
> INSERT 23 : 31 @ 28
+ public static void bootstrapStates() {
+ VARIANT = PropertyEnum.create("variant", BlockPlanks.EnumType.class, new Predicate<BlockPlanks.EnumType>() {
+ public boolean apply(BlockPlanks.EnumType blockplanks$enumtype) {
+ return blockplanks$enumtype.getMetadata() >= 4;
+ }
+ });
+ }
+
> EOF