Package mcp.mobius.waila.api
Interface ITargetRedirector
Used to redirect the targeted objet to other object.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Redirection result, only here to make sure it's not called multiple times. -
Method Summary
Modifier and TypeMethodDescriptionRedirect to specific object at the hit result's position.toBehind()
Redirect to whatever object behind this object, essentially making this object appear invisible.Redirect to nowhere, disabling the tooltip to be displayed.toSelf()
Redirect the current object to itself.
-
Method Details
-
toSelf
ITargetRedirector.Result toSelf()Redirect the current object to itself.This also restrict lower priority provider from redirecting the object, return
null
instead if the caller doesn't redirect. -
toNowhere
ITargetRedirector.Result toNowhere()Redirect to nowhere, disabling the tooltip to be displayed. -
toBehind
ITargetRedirector.Result toBehind()Redirect to whatever object behind this object, essentially making this object appear invisible. -
to
Redirect to specific object at the hit result's position.Note:
BlockHitResult.withPosition(BlockPos)
will have the original hit location (not to be confused with block position), you need to take account if the redirect target is not from something you own (e.g. redirecting to other mod's block).
-