public class EmptyPokeBallEntity extends PokeBallEntity
canCatch, clientRotation, dataSyncManager, dropItem, endRotationYaw, inc, initialScale, lastAnim, openAngle, pixelmon, SCALE, slot, SYNC_ANIMATION, SYNC_CRITICAL, SYNC_ID, SYNC_INITIAL_PITCH, SYNC_INITIAL_YAW, SYNC_IS_ON_GROUND, SYNC_IS_WAITING, SYNC_MODE, SYNC_OWNER, SYNC_PAIRED_ENTITY, SYNC_POKE_UUID, SYNC_POKEBALL_TYPE, SYNC_SLOT, thrower, ticksPerShake, waitTimer
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, type, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
Constructor and Description |
---|
EmptyPokeBallEntity(net.minecraft.entity.EntityType<EmptyPokeBallEntity> type,
net.minecraft.world.World world) |
EmptyPokeBallEntity(net.minecraft.world.World world)
Creates an empty Poké Ball.
|
EmptyPokeBallEntity(net.minecraft.world.World world,
net.minecraft.entity.LivingEntity thrower,
PixelmonEntity target,
PokeBall type,
BattleController battleController)
Creates an empty Poké Ball thrown by a player that targets a Pokémon.
|
EmptyPokeBallEntity(net.minecraft.world.World world,
net.minecraft.entity.LivingEntity entityliving,
PokeBall type,
boolean dropItem)
Creates an empty Poké Ball thrown by a player.
|
Modifier and Type | Method and Description |
---|---|
protected void |
catchPokemon()
Catches the targeted Pokémon in the Poké Ball.
|
protected void |
onHit(net.minecraft.util.math.RayTraceResult movingobjectposition) |
void |
removeAfterChangingDimensions() |
void |
spawnRedBeam() |
void |
tick() |
baseTick, define, defineSynchedData, doCaptureCalc, getAddEntityPacket, getAnimation, getBallType, getComponentItems, getCritical, getInitialPitch, getInitialYaw, getIsOnGround, getIsWaiting, getMode, getModel, getName, getOwnerId, getPairedEntity, getPokeballID, getPokeUUID, getShakeCount, getWaitTimer, moveCloser, onCaptureAttemptEffect, onSyncedDataUpdated, premierFlash, releaseEffect, setAnimation, setCritical, setInitialPitch, setInitialYaw, setIsOnGround, setIsWaiting, setModel, setOwnerId, setPairedEntity, setPokeballID, setPokeUUID, successfulCaptureEffect
getGravity, shouldRenderAtSqrDistance
addAdditionalSaveData, canHitEntity, getOwner, lerpMotion, lerpRotation, onHitBlock, onHitEntity, readAdditionalSaveData, setOwner, shoot, shootFromRotation, updateRotation
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, animateHurt, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkDespawn, checkFallDamage, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBoundingBox, getBoundingBoxForCulling, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHandSlots, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getMyRidingOffset, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getX, getX, getY, getY, getYHeadRot, getZ, getZ, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, hurt, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPickable, isPushable, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killed, lavaHurt, lerpHeadTo, lerpTo, limitPistonMovement, load, lookAt, makeFlySound, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, outOfWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, remove, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rideableUnderWater, rideTick, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setItemSlot, setLevel, setLocationFromBoundingbox, setNoGravity, setOnGround, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSlot, setSprinting, setSwimming, setUUID, setViewScale, setYBodyRot, setYHeadRot, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldShowName, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public EmptyPokeBallEntity(net.minecraft.entity.EntityType<EmptyPokeBallEntity> type, net.minecraft.world.World world)
public EmptyPokeBallEntity(net.minecraft.world.World world)
world
- The world the Poké Ball is in.public EmptyPokeBallEntity(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entityliving, PokeBall type, boolean dropItem)
world
- The world the Poké Ball is in.entityliving
- The player who threw the Poké Ball.type
- The type of Poké Ball.dropItem
- Whether the Poké Ball will drop as an item upon colliding with something.public EmptyPokeBallEntity(net.minecraft.world.World world, net.minecraft.entity.LivingEntity thrower, PixelmonEntity target, PokeBall type, BattleController battleController)
world
- The world the Poké Ball is in.thrower
- The player who threw the Poké Ball.target
- The Pokémon that the Poké Ball is aimed at.type
- The type of Poké Ball.battleController
- The battle that the Poké Ball was thrown in.protected void onHit(net.minecraft.util.math.RayTraceResult movingobjectposition)
onHit
in class PokeBallEntity
public void spawnRedBeam()
spawnRedBeam
in class PokeBallEntity
public void tick()
tick
in class PokeBallEntity
protected void catchPokemon()
public void removeAfterChangingDimensions()
removeAfterChangingDimensions
in class net.minecraft.entity.Entity