public interface Piglin extends PiglinAbstract, InventoryHolder, RangedEntity
Entity.Spigot| Modifier and Type | Method and Description |
|---|---|
boolean |
addBarterMaterial(@NotNull Material material)
Adds a material to the allowed list of materials to barter with.
|
boolean |
addMaterialOfInterest(@NotNull Material material)
Adds a material the piglin will pickup and store in his inventory.
|
@NotNull Set<Material> |
getBarterList()
Returns a immutable set of materials the piglins will barter with.
|
@NotNull 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(@NotNull Material material)
Removes a material from the allowed list of materials to barter with.
|
boolean |
removeMaterialOfInterest(@NotNull 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, setImmuneToZombificationcanBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreedgetHeadRotationSpeed, getMaxHeadPitch, getPathfinder, getTarget, isAware, isInDaylight, lookAt, lookAt, lookAt, lookAt, lookAt, lookAt, setAware, setTargetaddPotionEffect, addPotionEffect, addPotionEffects, attack, clearActiveItem, getActiveItem, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaised, getHandRaisedTime, getHurtDirection, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isHandRaised, isInvisible, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, playPickupItemAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setCanPickupItems, setCollidable, setGliding, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, swingMainHand, swingOffHandgetAttribute, registerAttributedamage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthaddPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, 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, teleportAsync, teleportAsyncgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageaudience, audience, clearTitle, empty, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound, toAudienceaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpcustomName, customName, getCustomName, setCustomNamegetPersistentDataContainerasHoverEvent, unboxlaunchProjectile, launchProjectileclearLootTable, getLootTable, getSeed, hasLootTable, setLootTable, setLootTable, setSeedgetInventoryisChargingAttack, rangedAttack, setChargingAttackboolean isAbleToHunt()
void setIsAbleToHunt(boolean flag)
flag - Whether the piglin is able to hunt hoglins.boolean addBarterMaterial(@NotNull @NotNull Material material)
material - The material to addboolean removeBarterMaterial(@NotNull @NotNull Material material)
PiglinBarterEvent.material - The material to removeboolean addMaterialOfInterest(@NotNull @NotNull Material material)
material - The material you want the piglin to be interested inboolean removeMaterialOfInterest(@NotNull @NotNull Material material)
EntityPickupItemEvent.material - The material you want removed from the interest list@NotNull @NotNull Set<Material> getInterestList()
EntityPickupItemEvent.@NotNull @NotNull Set<Material> getBarterList()
PiglinBarterEvent.Copyright © 2022. All rights reserved.