- Enclosing class:
- EntitySleepEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
@Nullable net.minecraft.util.math.Vec3d
modifyWakeUpPosition(net.minecraft.entity.LivingEntity entity,
net.minecraft.util.math.BlockPos sleepingPos,
net.minecraft.block.BlockState bedState,
@Nullable net.minecraft.util.math.Vec3d wakeUpPos)
Modifies or provides a wake-up position for an entity waking up.
-
Method Details
-
modifyWakeUpPosition
@Nullable
@Nullable net.minecraft.util.math.Vec3d modifyWakeUpPosition(net.minecraft.entity.LivingEntity entity,
net.minecraft.util.math.BlockPos sleepingPos,
net.minecraft.block.BlockState bedState,
@Nullable
@Nullable net.minecraft.util.math.Vec3d wakeUpPos)
Modifies or provides a wake-up position for an entity waking up.
- Parameters:
entity
- the sleeping entity
sleepingPos
- the position of the block slept on
bedState
- the block slept on
wakeUpPos
- the old wake-up position, or null
if not determined by vanilla or previous callbacks
- Returns:
- the new wake-up position