Interface RelativeHitboxInfo

All Known Implementing Classes:
RelativeHitboxInfoImpl

public interface RelativeHitboxInfo
A built relative hitbox. These are used with ImmersiveBuilders, placed relative to a center defined by the builder's selected HitboxPositioningMode, and can potentially hold items. They can be created using RelativeHitboxInfoBuilders.
  • Method Details

    • cloneWithAddedOffset

      RelativeHitboxInfo cloneWithAddedOffset(net.minecraft.world.phys.Vec3 offset)
      Create a clone of this relative hitbox, but add the provided offset to the offset of the clone.
      Parameters:
      offset - The offset to add.
      Returns:
      A clone of this relative hitbox with the changes described above.
    • getBuilderClone

      RelativeHitboxInfoBuilder getBuilderClone()
      Returns:
      A clone of this relative hitbox in builder form.