Interface ISelfProvider

All Known Implementing Classes:
InjectEntityPlaySound, InjectLocalPlayerPlaySound, InjectPlayerAttackTarget, InjectPlayerPlaySound, InjectServerPlayerPlaySound

public interface ISelfProvider
Utility for mixins. Offers a range of methods that provide this as a preset type.
Author:
Eti
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.client.player.LocalPlayer
    Identical to "this", but treats the implementer like a LocalPlayer.
    default net.minecraft.world.entity.player.Player
    Identical to "this", but treats the implementer like a Player.
    default net.minecraft.world.entity.Entity
    Identical to "this", but treats the implementer like an Entity.
    default net.minecraft.server.level.ServerPlayer
    Identical to "this", but treats the implementer like a ServerPlayer.
    default net.minecraft.world.level.Level
    Identical to "this", but treats the implementer like a Level.
  • Method Details

    • selfProvider$self

      default net.minecraft.world.entity.Entity selfProvider$self()
      Identical to "this", but treats the implementer like an Entity.
      Returns:
      This instance as an Entity.
    • selfProvider$player

      default net.minecraft.world.entity.player.Player selfProvider$player()
      Identical to "this", but treats the implementer like a Player.
      Returns:
      This instance as a Player
    • selfProvider$serverPlayer

      default net.minecraft.server.level.ServerPlayer selfProvider$serverPlayer()
      Identical to "this", but treats the implementer like a ServerPlayer.
      Returns:
      This instance as a ServerPlayer
    • selfProvider$clientPlayer

      default net.minecraft.client.player.LocalPlayer selfProvider$clientPlayer()
      Identical to "this", but treats the implementer like a LocalPlayer.
      Returns:
      This instance as a LocalPlayer
    • selfProvider$world

      default net.minecraft.world.level.Level selfProvider$world()
      Identical to "this", but treats the implementer like a Level.
      Returns:
      This instance as a Level