public static final class LeavesFix.LeavesLogFixer extends LeavesFix.ListFixer
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.ints.IntSet |
leafIndices |
private it.unimi.dsi.fastutil.ints.Int2IntMap |
leafStates |
private it.unimi.dsi.fastutil.ints.IntSet |
logIndices |
blockStateMap, field_5693, field_5694, properties
Constructor and Description |
---|
LeavesLogFixer(com.mojang.datafixers.Typed<?> typed,
com.mojang.datafixers.schemas.Schema schema) |
Modifier and Type | Method and Description |
---|---|
private void |
computeLeafStates(int int2,
int int3,
int int4) |
private com.mojang.serialization.Dynamic<?> |
createLeafProperties(com.mojang.serialization.Dynamic<?> dynamic,
String string,
boolean bool,
int int2) |
private int |
getDistanceToLog(int int2) |
boolean |
isLeaf(int int2) |
boolean |
isLog(int int2) |
protected boolean |
needsFix() |
computeFixableBlockStates, computeFlags, isFixed, method_5077, method_5083, needsFix
@Nullable private it.unimi.dsi.fastutil.ints.IntSet leafIndices
@Nullable private it.unimi.dsi.fastutil.ints.IntSet logIndices
@Nullable private it.unimi.dsi.fastutil.ints.Int2IntMap leafStates
public LeavesLogFixer(com.mojang.datafixers.Typed<?> typed, com.mojang.datafixers.schemas.Schema schema)
protected boolean needsFix()
needsFix
in class LeavesFix.ListFixer
private com.mojang.serialization.Dynamic<?> createLeafProperties(com.mojang.serialization.Dynamic<?> dynamic, String string, boolean bool, int int2)
public boolean isLog(int int2)
public boolean isLeaf(int int2)
private int getDistanceToLog(int int2)
private void computeLeafStates(int int2, int int3, int int4)