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, registryNameFields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped
wrappedFields inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.registry.RegistryEntryAPI
FORGE, FORGE_OR_NEOFORGE, NAMED_ENV, SRG_ENV -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCollection<mods.thecomputerizer.theimpossiblelibrary.api.common.effect.EffectInstanceAPI<?>> intgetAir()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 itmods.thecomputerizer.theimpossiblelibrary.api.shapes.Boxmods.thecomputerizer.theimpossiblelibrary.api.shapes.BoxgetBoundingBox(net.minecraft.util.math.AxisAlignedBB aabb) mods.thecomputerizer.theimpossiblelibrary.api.tag.CompoundTagAPI<?> getData()mods.thecomputerizer.theimpossiblelibrary.api.world.DimensionAPI<?> floatmods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<?> mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> floatgetName()mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> getPos()mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?> getUUID()mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?> mods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<?> getWorld()booleanisAlive()booleanisAnimal()booleanbooleanisFlying()booleanbooleanisLiving()booleanisOwnedBy(mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?> owner) booleanisPlayer()voidsendMessage(mods.thecomputerizer.theimpossiblelibrary.api.text.TextAPI<?> text, UUID uuid) voidsendStatusMessage(mods.thecomputerizer.theimpossiblelibrary.api.text.TextAPI<?> text, boolean actionBar) voidsetPosition(double x, double y, double z) voidsetRegistryName(mods.thecomputerizer.theimpossiblelibrary.api.resource.ResourceLocationAPI<?> registryName) doublex()doubley()doublez()Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI
getGamemodeOrdinal, getStackInHand, isClientPlayer, isGamemodeAdventure, isGamemodeCreative, isGamemodeSpectator, isGamemodeSurvival, sendMessageMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.LivingEntityAPI
getHealthPercentMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI
equals, getDistanceTo, getDistanceTo, getDistanceTo, getEntity, getPosExact, getPosRounded, getRegistryName, setLocalRegistryName, setPosition, setPosition, setPosition, unwrapEntityMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped
getWrapped, getWrappedClass, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.registry.RegistryEntryAPI
getName, getRegistry, getRegistryNameMethods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped
getWrapped, getWrappedClass, unwrap
-
Constructor Details
-
Player1_12_2
-
-
Method Details
-
canTarget
public boolean canTarget()- Specified by:
canTargetin classmods.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:
getActiveEffectsin classmods.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:
getAirin classmods.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:
getAttackTargetin classmods.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:
getBedPosin classmods.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:
getBoundingBoxin classmods.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:
getDatain classmods.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:
getDimensionin classmods.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:
getHealthin classmods.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:
getInventoryin classmods.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:
getMainHandStackin classmods.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:
getMaxHealthin classmods.thecomputerizer.theimpossiblelibrary.api.common.entity.LivingEntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
-
getName
- Specified by:
getNamein interfacemods.thecomputerizer.theimpossiblelibrary.api.registry.RegistryEntryAPI<P extends net.minecraft.entity.player.EntityPlayer>- Specified by:
getNamein classmods.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:
getOffHandStackin classmods.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:
getPosin classmods.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:
getRootVehiclein classmods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
-
getUUID
-
getVehicle
@Nullable public mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?> getVehicle()- Specified by:
getVehiclein classmods.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:
getWorldin classmods.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:
isAlivein classmods.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:
isAnimalin classmods.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:
isFishingin classmods.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:
isFlyingin classmods.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:
isHostilein classmods.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:
isLivingin classmods.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:
isPlayerin classmods.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:
isOwnedByin classmods.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:
sendMessagein classmods.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:
sendStatusMessagein classmods.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:
setPositionin classmods.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:
xin classmods.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:
yin classmods.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:
zin classmods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<P extends net.minecraft.entity.player.EntityPlayer, net.minecraftforge.fml.common.registry.EntityEntry>
-