Class Player1_12_2<P extends net.minecraft.entity.player.EntityPlayer>

java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped<net.minecraftforge.fml.common.registry.EntityEntry>
mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P, net.minecraftforge.fml.common.registry.EntityEntry>
mods.thecomputerizer.theimpossiblelibrary.api.common.entity.LivingEntityAPI<P, net.minecraftforge.fml.common.registry.EntityEntry>
mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P, net.minecraftforge.fml.common.registry.EntityEntry>
mods.thecomputerizer.theimpossiblelibrary.legacy.v12.m2.common.entity.Player1_12_2<P>
All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.registry.RegistryEntryAPI<net.minecraftforge.fml.common.registry.EntityEntry>, mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped<net.minecraftforge.fml.common.registry.EntityEntry>
Direct Known Subclasses:
ClientPlayer1_12_2, ServerPlayer1_12_2

public abstract class Player1_12_2<P extends net.minecraft.entity.player.EntityPlayer> extends mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P, net.minecraftforge.fml.common.registry.EntityEntry>
  • Field Summary

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

    entity, registryName

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

    wrapped

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

    FORGE, FORGE_OR_NEOFORGE, NAMED_ENV, SRG_ENV
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Player1_12_2(P player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.effect.EffectInstanceAPI<?>>
     
    int
     
    mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?>
     
    mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?>
    getBedPos(mods.thecomputerizer.theimpossiblelibrary.api.world.DimensionAPI<?> dimension)
    The bed location can be null, so I'm not sure why the compiler is complaining about it
    mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box
     
    mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box
    getBoundingBox(net.minecraft.util.math.AxisAlignedBB aabb)
     
    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<?,?>
     
     
    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, 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

    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, getDistanceTo, getDistanceTo, getDistanceTo, getEntity, getPosExact, getPosRounded, getRegistryName, 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

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

    getWrapped, getWrappedClass, unwrap
  • Constructor Details

    • Player1_12_2

      protected Player1_12_2(P player)
  • Method Details

    • canTarget

      public boolean canTarget()
      Specified by:
      canTarget in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • getActiveEffects

      public Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.effect.EffectInstanceAPI<?>> getActiveEffects()
      Specified by:
      getActiveEffects in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • getAir

      public int getAir()
      Specified by:
      getAir in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • getBedPos

      public mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> getBedPos(mods.thecomputerizer.theimpossiblelibrary.api.world.DimensionAPI<?> dimension)
      The bed location can be null, so I'm not sure why the compiler is complaining about it
      Specified by:
      getBedPos in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • getBoundingBox

      public mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box getBoundingBox(net.minecraft.util.math.AxisAlignedBB aabb)
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • getHealth

      public float getHealth()
      Specified by:
      getHealth in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.LivingEntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • getMaxHealth

      public float getMaxHealth()
      Specified by:
      getMaxHealth in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.LivingEntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • getName

      public String getName()
      Specified by:
      getName in interface mods.thecomputerizer.theimpossiblelibrary.api.registry.RegistryEntryAPI<P extends net.minecraft.entity.player.EntityPlayer>
      Specified by:
      getName in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • getUUID

      public UUID getUUID()
      Specified by:
      getUUID in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • getVehicle

      @Nullable public mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?> getVehicle()
      Specified by:
      getVehicle in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • isAlive

      public boolean isAlive()
      Specified by:
      isAlive in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • isAnimal

      public boolean isAnimal()
      Specified by:
      isAnimal in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • isFishing

      public boolean isFishing()
      Specified by:
      isFishing in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • isFlying

      public boolean isFlying()
      Specified by:
      isFlying in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • isHostile

      public boolean isHostile()
      Specified by:
      isHostile in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • isLiving

      public boolean isLiving()
      Specified by:
      isLiving in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • isPlayer

      public boolean isPlayer()
      Specified by:
      isPlayer in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • sendMessage

      public void sendMessage(mods.thecomputerizer.theimpossiblelibrary.api.text.TextAPI<?> text, @Nullable UUID uuid)
      Specified by:
      sendMessage in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • 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.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • x

      public double x()
      Specified by:
      x in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • y

      public double y()
      Specified by:
      y in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
    • z

      public double z()
      Specified by:
      z in class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>