Package net.minecraft.util.datafix.fixes
Class LeavesFix.LeavesSection
java.lang.Object
net.minecraft.util.datafix.fixes.LeavesFix.Section
net.minecraft.util.datafix.fixes.LeavesFix.LeavesSection
- Enclosing class:
- LeavesFix
-
Field Summary
Modifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.ints.IntSet
private it.unimi.dsi.fastutil.ints.IntSet
private it.unimi.dsi.fastutil.ints.Int2IntMap
Fields inherited from class net.minecraft.util.datafix.fixes.LeavesFix.Section
index, palette, paletteFinder, storage
-
Constructor Summary
ConstructorDescriptionLeavesSection
(com.mojang.datafixers.Typed<?> p_i49851_1_, com.mojang.datafixers.schemas.Schema p_i49851_2_) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
getDistance
(int p_208459_1_) boolean
isLeaf
(int p_208460_1_) boolean
isLog
(int p_208457_1_) private com.mojang.serialization.Dynamic<?>
makeLeafTag
(com.mojang.serialization.Dynamic<?> p_209770_1_, String p_209770_2_, boolean p_209770_3_, int p_209770_4_) private void
setDistance
(int p_208454_1_, int p_208454_2_, int p_208454_3_) protected boolean
Methods inherited from class net.minecraft.util.datafix.fixes.LeavesFix.Section
getBlock, getIndex, getStateId, isSkippable, readStorage, write
-
Field Details
-
leaveIds
@Nullable private it.unimi.dsi.fastutil.ints.IntSet leaveIds -
logIds
@Nullable private it.unimi.dsi.fastutil.ints.IntSet logIds -
stateToIdMap
@Nullable private it.unimi.dsi.fastutil.ints.Int2IntMap stateToIdMap
-
-
Constructor Details
-
LeavesSection
public LeavesSection(com.mojang.datafixers.Typed<?> p_i49851_1_, com.mojang.datafixers.schemas.Schema p_i49851_2_)
-
-
Method Details
-
skippable
protected boolean skippable()- Specified by:
skippable
in classLeavesFix.Section
-
makeLeafTag
private com.mojang.serialization.Dynamic<?> makeLeafTag(com.mojang.serialization.Dynamic<?> p_209770_1_, String p_209770_2_, boolean p_209770_3_, int p_209770_4_) -
isLog
public boolean isLog(int p_208457_1_) -
isLeaf
public boolean isLeaf(int p_208460_1_) -
getDistance
private int getDistance(int p_208459_1_) -
setDistance
private void setDistance(int p_208454_1_, int p_208454_2_, int p_208454_3_)
-