IInteractor

interface IInteractor(source)

Interface for signaling OptiGUI about interactions for texture replacing.

Functions

Link copied to clipboard
@NotNull
open fun getInstance(): @NotNull IInteractor
Returns the implementation of IInteractor.
Link copied to clipboard
abstract fun interact(@NotNull container: @NotNull Identifier, @NotNull player: @NotNull PlayerEntity, @NotNull world: @NotNull World, @NotNull hand: @NotNull Hand, @NotNull target: @NotNull IInteractionTarget, @Nullable hitResult: @Nullable HitResult): Boolean
Signals the texture replacer that an interaction has begun.