public class PotatoProjectileEntity
extends net.minecraft.entity.projectile.DamagingProjectileEntity
implements net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData
| Modifier and Type | Class and Description |
|---|---|
static class |
PotatoProjectileEntity.PotatoDamageSource |
xPower, yPower, zPowerblocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld| Constructor and Description |
|---|
PotatoProjectileEntity(net.minecraft.entity.EntityType<? extends net.minecraft.entity.projectile.DamagingProjectileEntity> type,
net.minecraft.world.World world) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalSaveData(net.minecraft.nbt.CompoundNBT nbt) |
static net.minecraft.entity.EntityType.Builder<?> |
build(net.minecraft.entity.EntityType.Builder<?> builder) |
net.minecraft.network.IPacket<?> |
getAddEntityPacket() |
protected float |
getInertia() |
net.minecraft.item.ItemStack |
getItem() |
PotatoCannonProjectileTypes |
getProjectileType() |
PotatoProjectileRenderMode |
getRenderMode() |
net.minecraft.entity.Entity |
getStuckEntity() |
protected net.minecraft.particles.IParticleData |
getTrailParticle() |
boolean |
hurt(net.minecraft.util.DamageSource source,
float amt) |
protected void |
onHitBlock(net.minecraft.util.math.BlockRayTraceResult ray) |
protected void |
onHitEntity(net.minecraft.util.math.EntityRayTraceResult ray) |
static void |
playHitSound(net.minecraft.world.World world,
net.minecraft.util.math.vector.Vector3d location) |
static void |
playLaunchSound(net.minecraft.world.World world,
net.minecraft.util.math.vector.Vector3d location,
float pitch) |
void |
readAdditionalSaveData(net.minecraft.nbt.CompoundNBT nbt) |
void |
readSpawnData(net.minecraft.network.PacketBuffer additionalData) |
void |
setEnchantmentEffectsFromCannon(net.minecraft.item.ItemStack cannon) |
void |
setItem(net.minecraft.item.ItemStack stack) |
void |
setStuckEntity(net.minecraft.entity.Entity stuckEntity) |
protected boolean |
shouldBurn() |
void |
tick() |
void |
writeSpawnData(net.minecraft.network.PacketBuffer buffer) |
canHitEntity, defineSynchedData, getBrightness, getPickRadius, isPickable, shouldRenderAtSqrDistancegetOwner, lerpMotion, lerpRotation, onHit, setOwner, shoot, shootFromRotation, updateRotationabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, animateHurt, awardKillScore, baseTick, 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, 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, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, 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, 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, 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, onSyncedDataUpdated, outOfWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, remove, remove, removeAfterChangingDimensions, 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, updateSwimmingareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic PotatoProjectileEntity(net.minecraft.entity.EntityType<? extends net.minecraft.entity.projectile.DamagingProjectileEntity> type,
net.minecraft.world.World world)
public net.minecraft.item.ItemStack getItem()
public void setItem(net.minecraft.item.ItemStack stack)
public PotatoCannonProjectileTypes getProjectileType()
public void setEnchantmentEffectsFromCannon(net.minecraft.item.ItemStack cannon)
public void readAdditionalSaveData(net.minecraft.nbt.CompoundNBT nbt)
readAdditionalSaveData in class net.minecraft.entity.projectile.DamagingProjectileEntitypublic void addAdditionalSaveData(net.minecraft.nbt.CompoundNBT nbt)
addAdditionalSaveData in class net.minecraft.entity.projectile.DamagingProjectileEntitypublic net.minecraft.entity.Entity getStuckEntity()
public void setStuckEntity(net.minecraft.entity.Entity stuckEntity)
public PotatoProjectileRenderMode getRenderMode()
public void tick()
tick in class net.minecraft.entity.projectile.DamagingProjectileEntityprotected float getInertia()
getInertia in class net.minecraft.entity.projectile.DamagingProjectileEntityprotected net.minecraft.particles.IParticleData getTrailParticle()
getTrailParticle in class net.minecraft.entity.projectile.DamagingProjectileEntityprotected boolean shouldBurn()
shouldBurn in class net.minecraft.entity.projectile.DamagingProjectileEntityprotected void onHitEntity(net.minecraft.util.math.EntityRayTraceResult ray)
onHitEntity in class net.minecraft.entity.projectile.ProjectileEntitypublic static void playHitSound(net.minecraft.world.World world,
net.minecraft.util.math.vector.Vector3d location)
public static void playLaunchSound(net.minecraft.world.World world,
net.minecraft.util.math.vector.Vector3d location,
float pitch)
protected void onHitBlock(net.minecraft.util.math.BlockRayTraceResult ray)
onHitBlock in class net.minecraft.entity.projectile.ProjectileEntitypublic boolean hurt(net.minecraft.util.DamageSource source,
float amt)
hurt in class net.minecraft.entity.projectile.DamagingProjectileEntitypublic static net.minecraft.entity.EntityType.Builder<?> build(net.minecraft.entity.EntityType.Builder<?> builder)
public net.minecraft.network.IPacket<?> getAddEntityPacket()
getAddEntityPacket in class net.minecraft.entity.projectile.DamagingProjectileEntitypublic void writeSpawnData(net.minecraft.network.PacketBuffer buffer)
writeSpawnData in interface net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnDatapublic void readSpawnData(net.minecraft.network.PacketBuffer additionalData)
readSpawnData in interface net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData