public class PokemonEditorItem extends PixelmonItem
Constructor and Description |
---|
PokemonEditorItem()
Initializes the item.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkPermission(net.minecraft.entity.player.ServerPlayerEntity editingPlayer)
Checks to see if the user has permission for the PokeEditor.
|
boolean |
onLeftClickEntity(net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.entity.Entity entity) |
static void |
updateEditedPlayer(net.minecraft.entity.player.ServerPlayerEntity editingPlayer,
java.util.UUID editedPlayer)
Updates the player using the Pokémon editor.
|
static void |
updateSinglePokemon(net.minecraft.entity.player.ServerPlayerEntity editingPlayer,
java.util.UUID editedPlayer,
int slot)
Updates a single Pokémon in the Pokémon editor GUI.
|
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
use(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
appendHoverText, causeTempt, fillItemCategory, getLocalizedName, getTooltipText, getTooltipText, getUseAnimation, hideFromSearches, isBookEnchantable, isDrink, isEdible, isEnchantable, isFoil, isSearchable, setDrink, setHasEffect, setTempt, useFromBag, useFromBag
allowdedIn, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, is, isComplex, isCorrectToolForDrops, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoad
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
public net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World world, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand)
use
in class net.minecraft.item.Item
public boolean onLeftClickEntity(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.PlayerEntity player, net.minecraft.entity.Entity entity)
public static void updateEditedPlayer(net.minecraft.entity.player.ServerPlayerEntity editingPlayer, java.util.UUID editedPlayer)
editingPlayer
- The player using the Pokémon editor.editedPlayer
- The UUID of the player being edited.public static void updateSinglePokemon(net.minecraft.entity.player.ServerPlayerEntity editingPlayer, java.util.UUID editedPlayer, int slot)
editingPlayer
- The player using the Pokémon editor.editedPlayer
- The UUID of the player being edited.slot
- The party slot of the Pokémon to update.public static boolean checkPermission(net.minecraft.entity.player.ServerPlayerEntity editingPlayer)
editingPlayer
- The user to check.