public interface Piglin extends PiglinAbstract, InventoryHolder
Entity.Spigot
Modifier and Type | Method and Description |
---|---|
boolean |
addBarterMaterial(Material material)
Adds a material to the allowed list of materials to barter with.
|
boolean |
addMaterialOfInterest(Material material)
Adds a material the piglin will pickup and store in his inventory.
|
Set<Material> |
getBarterList()
Returns a immutable set of materials the piglins will barter with.
|
Set<Material> |
getInterestList()
Returns a immutable set of materials the piglins will pickup.
|
boolean |
isAbleToHunt()
Get whether the piglin is able to hunt hoglins.
|
boolean |
removeBarterMaterial(Material material)
Removes a material from the allowed list of materials to barter with.
|
boolean |
removeMaterialOfInterest(Material material)
Removes a material from the list of materials the piglin will pickup.
|
void |
setIsAbleToHunt(boolean flag)
Sets whether the piglin is able to hunt hoglins.
|
getConversionTime, isBaby, isConverting, isImmuneToZombification, setBaby, setConversionTime, setImmuneToZombification
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
addPotionEffect, addPotionEffect, addPotionEffects, attack, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
getAttribute
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
getPersistentDataContainer
launchProjectile, launchProjectile
getLootTable, getSeed, setLootTable, setSeed
getInventory
boolean isAbleToHunt()
void setIsAbleToHunt(boolean flag)
flag
- Whether the piglin is able to hunt hoglins.boolean addBarterMaterial(@NotNull Material material)
material
- The material to addboolean removeBarterMaterial(@NotNull Material material)
PiglinBarterEvent
.material
- The material to removeboolean addMaterialOfInterest(@NotNull Material material)
material
- The material you want the piglin to be interested inboolean removeMaterialOfInterest(@NotNull Material material)
EntityPickupItemEvent
.material
- The material you want removed from the interest list@NotNull Set<Material> getInterestList()
EntityPickupItemEvent
.@NotNull Set<Material> getBarterList()
PiglinBarterEvent
.Copyright © 2022. All rights reserved.