Package net.minecraft.world.level.block
Class SculkSpreader.ChargeCursor
java.lang.Object
net.minecraft.world.level.block.SculkSpreader.ChargeCursor
- Enclosing class:
SculkSpreader
-
Field Summary
Modifier and TypeFieldDescription(package private) int
static final com.mojang.serialization.Codec<SculkSpreader.ChargeCursor>
private int
static final int
private static final it.unimi.dsi.fastutil.objects.ObjectArrayList<Vec3i>
private BlockPos
private int
-
Constructor Summary
ModifierConstructorDescriptionChargeCursor
(BlockPos p_222296_, int p_222297_) private
ChargeCursor
(BlockPos p_222299_, int p_222300_, int p_222301_, int p_222302_, Optional<Set<Direction>> p_222303_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static SculkBehaviour
getBlockBehaviour
(BlockState p_222334_) int
int
getPos()
private static BlockPos
getValidMovementPos
(LevelAccessor p_222308_, BlockPos p_222309_, RandomSource p_222310_) private static boolean
isMovementUnobstructed
(LevelAccessor p_222318_, BlockPos p_222319_, BlockPos p_222320_) private static boolean
isUnobstructed
(LevelAccessor p_222322_, BlockPos p_222323_, Direction p_222324_) (package private) void
mergeWith
(SculkSpreader.ChargeCursor p_222332_) private boolean
shouldUpdate
(LevelAccessor p_222326_, BlockPos p_222327_, boolean p_222328_) void
update
(LevelAccessor p_222312_, BlockPos p_222313_, RandomSource p_222314_, SculkSpreader p_222315_, boolean p_222316_)
-
Field Details
-
NON_CORNER_NEIGHBOURS
-
MAX_CURSOR_DECAY_DELAY
public static final int MAX_CURSOR_DECAY_DELAY- See Also:
-
pos
-
charge
int charge -
updateDelay
private int updateDelay -
decayDelay
private int decayDelay -
facings
-
DIRECTION_SET
-
CODEC
-
-
Constructor Details
-
ChargeCursor
-
ChargeCursor
-
-
Method Details
-
getPos
-
getCharge
public int getCharge() -
getDecayDelay
public int getDecayDelay() -
getFacingData
-
shouldUpdate
-
update
public void update(LevelAccessor p_222312_, BlockPos p_222313_, RandomSource p_222314_, SculkSpreader p_222315_, boolean p_222316_) -
mergeWith
-
getBlockBehaviour
-
getRandomizedNonCornerNeighbourOffsets
-
getValidMovementPos
@Nullable private static BlockPos getValidMovementPos(LevelAccessor p_222308_, BlockPos p_222309_, RandomSource p_222310_) -
isMovementUnobstructed
private static boolean isMovementUnobstructed(LevelAccessor p_222318_, BlockPos p_222319_, BlockPos p_222320_) -
isUnobstructed
private static boolean isUnobstructed(LevelAccessor p_222322_, BlockPos p_222323_, Direction p_222324_)
-