public abstract class MixinEntityFishHook extends MixinEntity implements org.spongepowered.api.entity.projectile.FishHook, IMixinEntityFishHook
Modifier and Type | Field and Description |
---|---|
net.minecraft.entity.Entity |
caughtEntity |
org.spongepowered.api.entity.projectile.source.ProjectileSource |
projectileSource |
dataWatcher, fallDistance, fire, fireResistance, height, hurtResistantTime, inWater, isDead, motionX, motionY, motionZ, onGround, posX, posY, posZ, prevPosX, prevPosY, prevPosZ, rand, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, width, worldObj
Constructor and Description |
---|
MixinEntityFishHook() |
Modifier and Type | Method and Description |
---|---|
double |
getDamage() |
abstract net.minecraft.item.ItemStack |
getFishingResult() |
Optional<org.spongepowered.api.entity.Entity> |
getHookedEntity() |
org.spongepowered.api.entity.projectile.source.ProjectileSource |
getShooter() |
int |
handleHookRetraction() |
boolean |
onAttackEntityFrom(net.minecraft.entity.Entity entity,
net.minecraft.util.DamageSource damageSource,
float damage) |
void |
readFromNbt(net.minecraft.nbt.NBTTagCompound compound)
Read extra data (SpongeData) from the entity's NBT tag.
|
void |
setDamage(double damage) |
void |
setFishingRodItemStack(net.minecraft.item.ItemStack fishingRod) |
void |
setHookedEntity(org.spongepowered.api.entity.Entity entity) |
void |
setShooter(org.spongepowered.api.entity.projectile.source.ProjectileSource shooter) |
void |
writeToNbt(net.minecraft.nbt.NBTTagCompound compound)
Write extra data (SpongeData) to the entity's NBT tag.
|
copy, createSnapshot, getAir, getAlwaysRenderNameTag, getBaseVehicle, getContainers, getCustomNameTag, getEyeHeight, getFlag, getLocation, getPosition, getRotation, getScale, getSpongeCreator, getTeleportVehicle, getTransform, getType, getUniqueId, getUniqueID, getVelocity, getWorld, isLoaded, isOnGround, isRemoved, isTeleporting, mountEntity, onGetEyeHeight, onMoveEntity, onReadFromNBT, onSetSize, onWriteToNBT, remove, setAir, setAlwaysRenderNameTag, setCustomNameTag, setDead, setEyeHeight, setFlag, setIsTeleporting, setLocation, setLocation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotationSafely, setLocationAndRotationSafely, setLocationSafely, setPassenger, setPosition, setRawData, setRotation, setScale, setTeleportVehicle, setTransform, setVehicle, setVelocity, shadow$setRotation, supplyVanillaManipulators, teleportEntity, toContainer, transferToWorld, transferToWorld, validateRawData, writeToNBT
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSnapshot, damage, getLocation, getRotation, getScale, getTransform, getType, getWorld, isLoaded, isOnGround, isRemoved, remove, setLocation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotationSafely, setLocationAndRotationSafely, setLocationSafely, setRotation, setScale, setTransform, transferToWorld, transferToWorld
getApplicableProperties, getProperty
copyFrom, copyFrom, get, getContainers, getOrCreate, offer, offer, offer, offer, offer, offer, remove, remove, remove, supports, transform, undo
copy, get, getKeys, getOrElse, getOrNull, getValue, getValues, supports, supports
getActivatedTick, getActivationType, getDefaultActivationState, getSpongeData, inactiveTick, setActivatedTick
public net.minecraft.entity.Entity caughtEntity
@Nullable public org.spongepowered.api.entity.projectile.source.ProjectileSource projectileSource
public abstract net.minecraft.item.ItemStack getFishingResult()
public org.spongepowered.api.entity.projectile.source.ProjectileSource getShooter()
getShooter
in interface org.spongepowered.api.entity.projectile.Projectile
public void setShooter(org.spongepowered.api.entity.projectile.source.ProjectileSource shooter)
setShooter
in interface org.spongepowered.api.entity.projectile.Projectile
public Optional<org.spongepowered.api.entity.Entity> getHookedEntity()
getHookedEntity
in interface org.spongepowered.api.entity.projectile.FishHook
public void setHookedEntity(@Nullable org.spongepowered.api.entity.Entity entity)
setHookedEntity
in interface org.spongepowered.api.entity.projectile.FishHook
public boolean onAttackEntityFrom(net.minecraft.entity.Entity entity, net.minecraft.util.DamageSource damageSource, float damage)
public double getDamage()
public void setDamage(double damage)
public int handleHookRetraction()
public void setFishingRodItemStack(net.minecraft.item.ItemStack fishingRod)
setFishingRodItemStack
in interface IMixinEntityFishHook
public void readFromNbt(net.minecraft.nbt.NBTTagCompound compound)
MixinEntity
readFromNbt
in interface IMixinEntity
readFromNbt
in class MixinEntity
compound
- The SpongeData compound to read frompublic void writeToNbt(net.minecraft.nbt.NBTTagCompound compound)
MixinEntity
writeToNbt
in interface IMixinEntity
writeToNbt
in class MixinEntity
compound
- The SpongeData compound to write to