public abstract class MixinEntityVillager extends MixinEntityAgeable implements org.spongepowered.api.entity.living.Villager, IMixinVillager
_combatTracker, attackingPlayer, deathTime, entityLivingToAttack, hurtTime, lastDamage, maxHurtResistantTime, maxHurtTime, potionsNeedUpdate
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 |
---|
MixinEntityVillager() |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.data.type.Career |
getCareer() |
org.spongepowered.api.data.manipulator.mutable.entity.CareerData |
getCareerData() |
Optional<org.spongepowered.api.entity.living.Human> |
getCustomer() |
abstract int |
getProfession() |
abstract net.minecraft.village.MerchantRecipeList |
getRecipes(net.minecraft.entity.player.EntityPlayer player) |
org.spongepowered.api.data.manipulator.mutable.entity.TradeOfferData |
getTradeOfferData() |
boolean |
isPlaying() |
boolean |
isTrading() |
void |
onSetProfession(int professionId,
org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) |
void |
setCareer(org.spongepowered.api.data.type.Career career) |
abstract void |
setCustomer(net.minecraft.entity.player.EntityPlayer player) |
void |
setCustomer(org.spongepowered.api.entity.living.Human human) |
void |
setPlaying(boolean playing) |
abstract void |
setProfession(int professionId) |
abstract net.minecraft.entity.player.EntityPlayer |
shadow$getCustomer() |
getAgeData, toContainer
callLeashEvent, callUnleashEvent, getCanPickupItems, getLeashedToEntity, getLeashHolder, isAIDisabled, isAiEnabled, isLeashed, setAiEnabled, setCanPickupItems, setLeashed, setLeashedToEntity, setLeashHolder, setNoAI
addPotionEffect, addPotionEffect, addPotionEffects, attackEntityFrom, clearActivePotions, damageD, getActivePotionEffects, getCustomName, getEntityAttribute, getEquipmentInSlot, getEyeHeightD, getEyeLocation, getHealth, getHealthD, getHealthData, getInvulnerabilityTicks, getLastAttacker, getLastAttackerAPI, getLastDamage, getMaxAir, getMaxHealth, getMaxHealthD, getMaxInvulnerabilityTicks, getMortalData, getPotionEffects, getRemainingAir, getTeamRepresentation, hasPotionEffect, isAPIInvisible, isCustomNameVisible, isPotionActive, onDeathSendEntityState, readFromNbt, removePotionEffect, removePotionEffect, setAPIInvisible, setCurrentItemOrArmor, setCustomName, setCustomNameVisible, setHealth, setHealthD, setInvulnerabilityTicks, setLastAttacker, setLastAttacker, setLastDamage, setMaxAir, setMaxHealth, setMaxInvulnerabilityTicks, setRemainingAir, writeToNbt
getAir, getAlwaysRenderNameTag, getBaseVehicle, getContainers, getCustomNameTag, getEyeHeight, getFlag, getLocation, getPosition, getRotation, getScale, 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, teleportEntity, transferToWorld, transferToWorld, validateRawData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAgeData, setScaleForAge
getHealthData, getMortalData
createSnapshot, damage, getLocation, getRotation, getScale, getTransform, getType, getWorld, isLoaded, isOnGround, isRemoved, remove, setLocation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotationSafely, setLocationAndRotationSafely, setLocationSafely, setRotation, setScale, setTransform, transferToWorld, transferToWorld
getProperties, getProperty, setRawData, validateRawData
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 abstract int getProfession()
public abstract void setProfession(int professionId)
public abstract void setCustomer(net.minecraft.entity.player.EntityPlayer player)
public abstract net.minecraft.entity.player.EntityPlayer shadow$getCustomer()
public abstract net.minecraft.village.MerchantRecipeList getRecipes(net.minecraft.entity.player.EntityPlayer player)
public void onSetProfession(int professionId, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
public boolean isPlaying()
isPlaying
in interface IMixinVillager
public void setPlaying(boolean playing)
setPlaying
in interface IMixinVillager
public boolean isTrading()
isTrading
in interface org.spongepowered.api.entity.living.Villager
public org.spongepowered.api.data.type.Career getCareer()
getCareer
in interface IMixinVillager
public void setCareer(org.spongepowered.api.data.type.Career career)
setCareer
in interface IMixinVillager
public Optional<org.spongepowered.api.entity.living.Human> getCustomer()
getCustomer
in interface org.spongepowered.api.item.merchant.Merchant
public void setCustomer(@Nullable org.spongepowered.api.entity.living.Human human)
setCustomer
in interface org.spongepowered.api.item.merchant.Merchant
public org.spongepowered.api.data.manipulator.mutable.entity.TradeOfferData getTradeOfferData()
getTradeOfferData
in interface org.spongepowered.api.item.merchant.Merchant
public org.spongepowered.api.data.manipulator.mutable.entity.CareerData getCareerData()
getCareerData
in interface org.spongepowered.api.entity.living.Villager