public class BikeEntity
extends net.minecraft.entity.passive.horse.AbstractHorseEntity
Modifier and Type | Field and Description |
---|---|
protected EntityDataSyncManager |
dataSyncManager |
IncrementingVariable |
inc |
boolean |
jumping |
float |
moveForward |
float |
moveStrafing |
float |
moveVertical |
float |
randomYawVelocity |
canGallop, gallopSoundCounter, inventory, isJumping, playerJumpPendingScale, sprintCounter, tailCounter, temper
ambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, xpReward
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_HEALTH_ID, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, noJumpDelay, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
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, onGround, 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 |
---|
BikeEntity(net.minecraft.entity.EntityType<BikeEntity> type,
net.minecraft.world.World world) |
BikeEntity(net.minecraft.world.World world) |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalSaveData(net.minecraft.nbt.CompoundNBT compound) |
protected void |
applyYawToEntity(net.minecraft.entity.Entity entity)
Applies this entity's yaw to the given entity.
|
boolean |
canBeControlledByRider() |
boolean |
causeFallDamage(float fallDistance,
float damageMultiplier) |
protected void |
defineSynchedData() |
net.minecraft.network.IPacket<?> |
getAddEntityPacket() |
protected net.minecraft.util.SoundEvent |
getAngrySound() |
EnumBike |
getBikeType() |
net.minecraft.util.math.AxisAlignedBB |
getCollisionBoundingBox() |
net.minecraft.item.DyeColor |
getColor() |
net.minecraft.entity.Entity |
getControllingPassenger() |
protected net.minecraft.util.SoundEvent |
getDeathSound() |
net.minecraft.util.math.vector.Vector3d |
getDismountLocationForPassenger(net.minecraft.entity.LivingEntity passenger) |
protected net.minecraft.util.SoundEvent |
getEatingSound() |
protected net.minecraft.util.SoundEvent |
getHurtSound(net.minecraft.util.DamageSource p_184601_1_) |
net.minecraft.util.text.ITextComponent |
getName()
Get the name of this object.
|
double |
getPassengersRidingOffset()
Returns the Y offset from the entity's position for any entity riding this one.
|
boolean |
hurt(net.minecraft.util.DamageSource source,
float amount) |
net.minecraft.util.ActionResultType |
interactAt(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.vector.Vector3d angle,
net.minecraft.util.Hand hand) |
boolean |
isNoAi() |
boolean |
isPickable() |
boolean |
isPushable()
Returns true if this entity should push and be pushed by other entities when colliding.
|
boolean |
isSaddled() |
boolean |
isTamed() |
protected void |
jump()
Causes this entity to do an upwards motion (jumping).
|
void |
onPassengerTurned(net.minecraft.entity.Entity entityToUpdate)
Applies this entity's orientation (pitch/yaw) to another entity.
|
void |
onSyncedDataUpdated(net.minecraft.network.datasync.DataParameter<?> key) |
void |
openInventory(net.minecraft.entity.player.PlayerEntity p_110199_1_) |
protected void |
playGallopSound(net.minecraft.block.SoundType p_190680_1_) |
protected void |
playJumpSound() |
protected void |
playStepSound(net.minecraft.util.math.BlockPos p_180429_1_,
net.minecraft.block.BlockState p_180429_2_) |
void |
positionRider(net.minecraft.entity.Entity passenger) |
void |
readAdditionalSaveData(net.minecraft.nbt.CompoundNBT compound) |
void |
setColor(net.minecraft.item.DyeColor type) |
void |
setType(EnumBike type) |
void |
tick() |
void |
travel(float strafe,
float up,
float forward) |
addBehaviourGoals, aiStep, calculateFallDamage, canEatGrass, canJump, canMate, canParent, canWearArmor, containerChanged, createBaseHorseAttributes, createInventory, doPlayerRide, dropEquipment, equipSaddle, fedFood, finalizeSpawn, followMommy, generateRandomJumpStrength, generateRandomMaxHealth, generateRandomSpeed, getAmbientSound, getAmbientSoundInterval, getBreedOffspring, getCapability, getCustomJump, getEatAnim, getFlag, getInventorySize, getMaxSpawnClusterSize, getMaxTemper, getMouthAnim, getOwnerUUID, getSoundVolume, getStandAnim, getStandingEyeHeight, getTemper, handleEating, handleEntityEvent, handleStartJump, handleStopJump, invalidateCaps, isArmor, isBred, isEating, isFood, isImmobile, isJumping, isSaddleable, isStanding, isWearingArmor, makeMad, modifyTemper, onClimbable, onLeashDistance, onPlayerJump, randomizeAttributes, registerGoals, setBred, setEating, setFlag, setIsJumping, setOffspringAttributes, setOwnerUUID, setSlot, setStanding, setTamed, setTemper, spawnTamingParticles, tameWithName, travel, updateContainerEquipment
canFallInLove, checkAnimalSpawnRules, customServerAiStep, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, isInLove, mobInteract, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, isBaby, setAge, setBaby
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, tickLeash
ate, baseTick, canAttack, canAttackType, canBeLeashed, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkAndHandleImportantInteractions, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getEquipmentSlotForItem, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMoveControl, getNavigation, getPathfindingMalus, getRestrictCenter, getRestrictRadius, getSensing, getTarget, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUp
actuallyHurt, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, canAttack, canBeAffected, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, markHurt, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateFallFlying, updateInvisibilityStatus, updateSwingTime
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getOnPos, getPacketCoordinates, getPassengers, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, makeStuckInBlock, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playSwimSound, position, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public boolean jumping
public float moveStrafing
public float moveVertical
public float moveForward
public float randomYawVelocity
public IncrementingVariable inc
protected EntityDataSyncManager dataSyncManager
public BikeEntity(net.minecraft.world.World world)
public BikeEntity(net.minecraft.entity.EntityType<BikeEntity> type, net.minecraft.world.World world)
protected void defineSynchedData()
defineSynchedData
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public boolean isNoAi()
isNoAi
in class net.minecraft.entity.MobEntity
public void openInventory(net.minecraft.entity.player.PlayerEntity p_110199_1_)
openInventory
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
@Nullable protected net.minecraft.util.SoundEvent getEatingSound()
getEatingSound
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
@Nullable protected net.minecraft.util.SoundEvent getDeathSound()
getDeathSound
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
@Nullable protected net.minecraft.util.SoundEvent getHurtSound(net.minecraft.util.DamageSource p_184601_1_)
getHurtSound
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
protected void playJumpSound()
playJumpSound
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
@Nullable protected net.minecraft.util.SoundEvent getAngrySound()
getAngrySound
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
protected void playStepSound(net.minecraft.util.math.BlockPos p_180429_1_, net.minecraft.block.BlockState p_180429_2_)
playStepSound
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
protected void playGallopSound(net.minecraft.block.SoundType p_190680_1_)
playGallopSound
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public net.minecraft.util.text.ITextComponent getName()
getName
in interface net.minecraft.util.INameable
getName
in class net.minecraft.entity.Entity
public void onSyncedDataUpdated(net.minecraft.network.datasync.DataParameter<?> key)
onSyncedDataUpdated
in class net.minecraft.entity.AgeableEntity
public double getPassengersRidingOffset()
getPassengersRidingOffset
in class net.minecraft.entity.Entity
public boolean isTamed()
isTamed
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public boolean isSaddled()
isSaddled
in interface net.minecraft.entity.IEquipable
isSaddled
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public void tick()
tick
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public boolean canBeControlledByRider()
canBeControlledByRider
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public void travel(float strafe, float up, float forward)
public boolean causeFallDamage(float fallDistance, float damageMultiplier)
causeFallDamage
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public void onPassengerTurned(net.minecraft.entity.Entity entityToUpdate)
onPassengerTurned
in class net.minecraft.entity.Entity
public void positionRider(net.minecraft.entity.Entity passenger)
positionRider
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
protected void applyYawToEntity(net.minecraft.entity.Entity entity)
public net.minecraft.util.ActionResultType interactAt(net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.math.vector.Vector3d angle, net.minecraft.util.Hand hand)
interactAt
in class net.minecraft.entity.Entity
public boolean hurt(net.minecraft.util.DamageSource source, float amount)
hurt
in class net.minecraft.entity.passive.AnimalEntity
public net.minecraft.util.math.vector.Vector3d getDismountLocationForPassenger(net.minecraft.entity.LivingEntity passenger)
getDismountLocationForPassenger
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public net.minecraft.util.math.AxisAlignedBB getCollisionBoundingBox()
public boolean isPickable()
isPickable
in class net.minecraft.entity.LivingEntity
public boolean isPushable()
isPushable
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public void readAdditionalSaveData(net.minecraft.nbt.CompoundNBT compound)
readAdditionalSaveData
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public void addAdditionalSaveData(net.minecraft.nbt.CompoundNBT compound)
addAdditionalSaveData
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public net.minecraft.entity.Entity getControllingPassenger()
getControllingPassenger
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public net.minecraft.network.IPacket<?> getAddEntityPacket()
getAddEntityPacket
in class net.minecraft.entity.LivingEntity
public EnumBike getBikeType()
public void setType(EnumBike type)
public net.minecraft.item.DyeColor getColor()
public void setColor(net.minecraft.item.DyeColor type)
protected void jump()