Class Player1_18_2<P extends net.minecraft.world.entity.player.Player>

java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped<V>
mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<L,V>
mods.thecomputerizer.theimpossiblelibrary.api.common.entity.LivingEntityAPI<P,V>
mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P,net.minecraft.world.entity.EntityType<?>>
mods.thecomputerizer.theimpossiblelibrary.shared.v18.m2.common.entity.Player1_18_2<P>
All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor, mods.thecomputerizer.theimpossiblelibrary.api.registry.RegistryEntryAPI<net.minecraft.world.entity.EntityType<?>>, mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped<net.minecraft.world.entity.EntityType<?>>
Direct Known Subclasses:
ClientPlayer1_18_2, ServerPlayer1_18_2

public abstract class Player1_18_2<P extends net.minecraft.world.entity.player.Player> extends mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P,net.minecraft.world.entity.EntityType<?>>
  • Field Summary

    Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI

    effectsGetter, entity, registryName

    Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped

    wrapped

    Fields inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor

    BOOLEAN_VALUES, FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, JAVA_VERSION_ASM, LEGACY, MOD_LOADER, NAMED_ENV, NEOFORGE, SRG_ENV, V12, V16, V16_OR_EARLIER, V16_OR_LATER, V18, V18_OR_EARLIER, V18_OR_LATER, V19, V19_2_OR_EARLIER, V19_4_OR_LATER, V19_OR_EARLIER, V19_OR_LATER, V20, V20_4_OR_EARLIER, V20_6_OR_LATER, V20_OR_EARLIER, V20_OR_LATER, V21, V21_OR_LATER
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?>
     
    mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box
     
    protected mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box
    getBoundingBox(net.minecraft.world.phys.AABB box)
     
    mods.thecomputerizer.theimpossiblelibrary.api.tag.CompoundTagAPI<?>
     
    mods.thecomputerizer.theimpossiblelibrary.api.world.DimensionAPI<?>
     
    float
     
    mods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<?>
     
    mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>
     
    float
     
     
    mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>
     
    mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?>
     
    mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?>
     
     
    @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?>
     
    mods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<?>
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    isOwnedBy(mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?> owner)
     
    boolean
     
    void
    sendMessage(mods.thecomputerizer.theimpossiblelibrary.api.text.TextAPI<?> text, @Nullable UUID uuid)
     
    void
    sendStatusMessage(mods.thecomputerizer.theimpossiblelibrary.api.text.TextAPI<?> text, boolean actionBar)
     
    void
    setPosition(double x, double y, double z)
     
    void
    setRegistryName(mods.thecomputerizer.theimpossiblelibrary.api.resource.ResourceLocationAPI<?> registryName)
     
    double
    x()
     
    double
    y()
     
    double
    z()
     

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI

    getBedPos, getGamemodeOrdinal, getStackInHand, isClientPlayer, isGamemodeAdventure, isGamemodeCreative, isGamemodeSpectator, isGamemodeSurvival, sendMessage

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.LivingEntityAPI

    getHealthPercent

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI

    equals, getActiveEffects, getActiveEffectsMethodName, getDistanceTo, getDistanceTo, getDistanceTo, getEffectsGetter, getEntity, getPosExact, getPosRounded, getRegistryName, isErroredEffects, setLocalRegistryName, setPosition, setPosition, setPosition, unwrapEntity

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped

    getWrapped, getWrappedClass, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.registry.RegistryEntryAPI

    getName, getRegistry, getRegistryName, setForgeRegistryName

    Methods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped

    getIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, getWrapped, getWrappedClass, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefault
  • Constructor Details

    • Player1_18_2

      protected Player1_18_2(Object player)
  • Method Details

    • canTarget

      public boolean canTarget()
      Specified by:
      canTarget in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getAir

      public int getAir()
      Specified by:
      getAir in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getAttackTarget

      public mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?> getAttackTarget()
      Specified by:
      getAttackTarget in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getBoundingBox

      public mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box getBoundingBox()
      Specified by:
      getBoundingBox in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getBoundingBox

      protected mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box getBoundingBox(net.minecraft.world.phys.AABB box)
    • getData

      public mods.thecomputerizer.theimpossiblelibrary.api.tag.CompoundTagAPI<?> getData()
      Specified by:
      getData in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getDimension

      public mods.thecomputerizer.theimpossiblelibrary.api.world.DimensionAPI<?> getDimension()
      Specified by:
      getDimension in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getHealth

      public float getHealth()
      Specified by:
      getHealth in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.LivingEntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getInventory

      public mods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<?> getInventory()
      Specified by:
      getInventory in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getMainHandStack

      public mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> getMainHandStack()
      Specified by:
      getMainHandStack in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getMaxHealth

      public float getMaxHealth()
      Specified by:
      getMaxHealth in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.LivingEntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getName

      public String getName()
      Specified by:
      getName in interface mods.thecomputerizer.theimpossiblelibrary.api.registry.RegistryEntryAPI<P extends net.minecraft.world.entity.player.Player>
      Specified by:
      getName in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getOffHandStack

      public mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> getOffHandStack()
      Specified by:
      getOffHandStack in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getPos

      public mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> getPos()
      Specified by:
      getPos in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getRootVehicle

      public mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?> getRootVehicle()
      Specified by:
      getRootVehicle in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getUUID

      public UUID getUUID()
      Specified by:
      getUUID in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getVehicle

      @Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?> getVehicle()
      Specified by:
      getVehicle in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • getWorld

      public mods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<?> getWorld()
      Specified by:
      getWorld in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • isAlive

      public boolean isAlive()
      Specified by:
      isAlive in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • isAnimal

      public boolean isAnimal()
      Specified by:
      isAnimal in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • isFishing

      public boolean isFishing()
      Specified by:
      isFishing in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • isFlying

      public boolean isFlying()
      Specified by:
      isFlying in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • isHostile

      public boolean isHostile()
      Specified by:
      isHostile in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • isLiving

      public boolean isLiving()
      Specified by:
      isLiving in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • isPlayer

      public boolean isPlayer()
      Specified by:
      isPlayer in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • isOwnedBy

      public boolean isOwnedBy(mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?> owner)
      Specified by:
      isOwnedBy in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • sendMessage

      public void sendMessage(mods.thecomputerizer.theimpossiblelibrary.api.text.TextAPI<?> text, @Nullable @Nullable UUID uuid)
      Specified by:
      sendMessage in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • sendStatusMessage

      public void sendStatusMessage(mods.thecomputerizer.theimpossiblelibrary.api.text.TextAPI<?> text, boolean actionBar)
      Specified by:
      sendStatusMessage in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • setRegistryName

      public void setRegistryName(mods.thecomputerizer.theimpossiblelibrary.api.resource.ResourceLocationAPI<?> registryName)
    • setPosition

      public void setPosition(double x, double y, double z)
      Specified by:
      setPosition in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • x

      public double x()
      Specified by:
      x in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • y

      public double y()
      Specified by:
      y in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>
    • z

      public double z()
      Specified by:
      z in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.world.entity.player.Player,net.minecraft.world.entity.EntityType<?>>