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 static final String
private static final String
private it.unimi.dsi.fastutil.ints.IntSet
private it.unimi.dsi.fastutil.ints.IntSet
private static final String
private it.unimi.dsi.fastutil.ints.Int2IntMap
Fields inherited from class net.minecraft.util.datafix.fixes.LeavesFix.Section
BLOCK_STATES_TAG, index, NAME_TAG, palette, paletteFinder, PROPERTIES_TAG, storage
-
Constructor Summary
ConstructorDescriptionLeavesSection
(com.mojang.datafixers.Typed<?> p_16254_, com.mojang.datafixers.schemas.Schema p_16255_) -
Method Summary
Modifier and TypeMethodDescription(package private) int
getDistance
(int p_16279_) boolean
isLeaf
(int p_16277_) boolean
isLog
(int p_16258_) private com.mojang.serialization.Dynamic
<?> makeLeafTag
(com.mojang.serialization.Dynamic<?> p_16272_, String p_16273_, boolean p_16274_, int p_16275_) (package private) void
setDistance
(int p_16260_, int p_16261_, int p_16262_) protected boolean
Methods inherited from class net.minecraft.util.datafix.fixes.LeavesFix.Section
getBlock, getIndex, getStateId, isSkippable, readStorage, write
-
Field Details
-
PERSISTENT
- See Also:
-
DECAYABLE
- See Also:
-
DISTANCE
- See Also:
-
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_16254_, com.mojang.datafixers.schemas.Schema p_16255_)
-
-
Method Details
-
skippable
protected boolean skippable()- Specified by:
skippable
in classLeavesFix.Section
-
makeLeafTag
private com.mojang.serialization.Dynamic<?> makeLeafTag(com.mojang.serialization.Dynamic<?> p_16272_, String p_16273_, boolean p_16274_, int p_16275_) -
isLog
public boolean isLog(int p_16258_) -
isLeaf
public boolean isLeaf(int p_16277_) -
getDistance
int getDistance(int p_16279_) -
setDistance
void setDistance(int p_16260_, int p_16261_, int p_16262_)
-