public class EntityBroom
extends net.minecraft.entity.Entity
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.entity.LivingEntity |
lastMounted
The player that last mounted this broom (used to detect dismounting)
|
static float |
MAX_ANGLE
Maximum angle of the broom between the XZ-plane and the Y-axis
(in degrees, -90 = completely up, +90 = completely down)
This limits the angle under which the player can move up or down
|
static float |
MIN_ANGLE
Minimum angle of the broom between the XZ-plane and the Y-axis
(in degrees, -90 = completely up, +90 = completely down)
This limits the angle under which the player can move up or down
|
static double |
SPEED
Speed for the broom (in all directions)
|
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collidedHorizontally, collidedVertically, dataManager, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesFluidLevel, eyesInWater, fallDistance, field_241335_O_, field_242271_ac, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, stepHeight, ticksExisted, velocityChanged, world| Constructor and Description |
|---|
EntityBroom(net.minecraft.entity.EntityType<? extends EntityBroom> type,
net.minecraft.world.World world) |
EntityBroom(net.minecraft.entity.EntityType<? extends EntityBroom> type,
net.minecraft.world.World world,
double x,
double y,
double z) |
EntityBroom(net.minecraft.world.World world,
double x,
double y,
double z) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPassenger(net.minecraft.entity.Entity passenger) |
void |
applyEntityCollision(net.minecraft.entity.Entity entityIn) |
boolean |
attackEntityFrom(net.minecraft.util.DamageSource source,
float amount) |
boolean |
canBeCollidedWith() |
boolean |
canBeRiddenInWater(net.minecraft.entity.Entity rider) |
boolean |
canConsume(int amount,
net.minecraft.entity.LivingEntity entityLiving) |
protected boolean |
canFitPassenger(net.minecraft.entity.Entity passenger) |
protected boolean |
canTriggerWalking() |
protected void |
collideWithNearbyEntities() |
void |
consume(int amount,
net.minecraft.entity.LivingEntity entityLiving) |
net.minecraft.network.IPacket<?> |
createSpawnPacket() |
net.minecraft.item.ItemStack |
getBroomStack() |
net.minecraft.entity.Entity |
getControllingPassenger() |
protected double |
getHoverOffset() |
double |
getLastPlayerSpeed() |
float |
getModifier(BroomModifier modifier) |
java.util.Map<BroomModifier,java.lang.Float> |
getModifiers() |
double |
getMountedYOffset() |
net.minecraft.entity.EntitySize |
getSize(net.minecraft.entity.Pose poseIn) |
protected void |
initBroomHoverTickOffset() |
boolean |
onLivingFall(float distance,
float damageMultiplier) |
net.minecraft.util.ActionResultType |
processInitialInteract(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
void |
read(net.minecraft.nbt.CompoundNBT tagCompound) |
protected void |
readAdditional(net.minecraft.nbt.CompoundNBT nbttagcompound) |
protected void |
registerData() |
protected void |
removePassenger(net.minecraft.entity.Entity passenger) |
void |
setBroomStack(net.minecraft.item.ItemStack itemStack) |
void |
setLastPlayerSpeed(double lastPlayerSpeed) |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean isTeleport) |
void |
showParticles(EntityBroom broom) |
void |
startAllowFlying(net.minecraft.entity.LivingEntity entity) |
void |
stopAllowFlying(net.minecraft.entity.LivingEntity entity) |
void |
tick() |
protected void |
updateMountedClient() |
protected void |
updateMountedServer()
Called on the server side for all players or on the client side when the
player mounted on the broom is the local player, so movement is as smooth as
possible.
|
protected void |
updateUnmounted() |
protected void |
writeAdditional(net.minecraft.nbt.CompoundNBT nbttagcompound) |
net.minecraft.nbt.CompoundNBT |
writeWithoutTypeId(net.minecraft.nbt.CompoundNBT tag) |
addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, awardKillScore, baseTick, calculateUpVector, canBeAttackedWithItem, canBePushed, canBeRidden, canBeRiddenInWater, canCollide, canExplosionDestroyBlock, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, decrementTimeUntilPortal, detach, determineNextStepDistance, dismount, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceFireTicks, forceSetPosition, func_230268_c_, func_233559_a_, func_233566_aG_, func_233571_b_, func_233577_ch_, func_233578_ci_, func_233579_cu_, func_241205_ce_, func_241829_a, func_241830_a, func_241839_a, func_241841_a, func_241842_k, func_241845_aY, func_241847_a, func_242274_V, func_242277_a, func_242278_a, func_242279_ag, func_242280_ah, func_242281_f, func_242282_l, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCommandSource, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLeashPosition, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMotion, getName, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getProfessionName, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getScoreboardName, getSelfAndPassengers, getServer, getSoundCategory, getSpeedFactor, getSplashSound, getStateBelow, getSwimSound, getTags, getTeam, getTeamColor, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, getYaw, getYOffset, handleFluidAcceleration, handlePistonMovement, handleRunningEffect, handleStatusUpdate, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isActualySwimming, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isEntityInRange, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnGround, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, lookAt, makeFlySound, markVelocityChanged, maybeBackOffFromEdge, move, moveForced, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillCommand, onRemovedFromWorld, outOfWorld, performHurtAnimation, pick, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, pushOutOfBlocks, recalculateSize, recenterBoundingBox, remove, remove, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setDead, setEntityId, setFire, setFlag, setGlowing, setHeadRotation, setInvisible, setInvulnerable, setItemStackToSlot, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setOnGround, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setRawPosition, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSneaking, setSprinting, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, shouldSpawnRunningEffects, startRiding, startRiding, stopRiding, teleportKeepLoaded, toString, updateFallState, updatePassenger, updatePortal, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemovedareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final double SPEED
public static final float MAX_ANGLE
public static final float MIN_ANGLE
public net.minecraft.entity.LivingEntity lastMounted
public EntityBroom(net.minecraft.entity.EntityType<? extends EntityBroom> type, net.minecraft.world.World world)
public EntityBroom(net.minecraft.entity.EntityType<? extends EntityBroom> type, net.minecraft.world.World world, double x, double y, double z)
public EntityBroom(net.minecraft.world.World world,
double x,
double y,
double z)
@Nonnull public net.minecraft.network.IPacket<?> createSpawnPacket()
createSpawnPacket in class net.minecraft.entity.Entitypublic net.minecraft.entity.EntitySize getSize(net.minecraft.entity.Pose poseIn)
getSize in class net.minecraft.entity.Entityprotected void initBroomHoverTickOffset()
public double getMountedYOffset()
getMountedYOffset in class net.minecraft.entity.Entityprotected boolean canTriggerWalking()
canTriggerWalking in class net.minecraft.entity.Entitypublic boolean canBeCollidedWith()
canBeCollidedWith in class net.minecraft.entity.Entitypublic net.minecraft.util.ActionResultType processInitialInteract(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
processInitialInteract in class net.minecraft.entity.Entitypublic void applyEntityCollision(net.minecraft.entity.Entity entityIn)
applyEntityCollision in class net.minecraft.entity.Entitypublic void setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean isTeleport)
setPositionAndRotationDirect in class net.minecraft.entity.Entitypublic net.minecraft.entity.Entity getControllingPassenger()
getControllingPassenger in class net.minecraft.entity.Entitypublic boolean attackEntityFrom(net.minecraft.util.DamageSource source,
float amount)
attackEntityFrom in class net.minecraft.entity.Entitypublic void startAllowFlying(net.minecraft.entity.LivingEntity entity)
public void stopAllowFlying(net.minecraft.entity.LivingEntity entity)
protected void addPassenger(net.minecraft.entity.Entity passenger)
addPassenger in class net.minecraft.entity.Entitypublic void tick()
tick in class net.minecraft.entity.Entityprotected boolean canFitPassenger(net.minecraft.entity.Entity passenger)
canFitPassenger in class net.minecraft.entity.Entityprotected void removePassenger(net.minecraft.entity.Entity passenger)
removePassenger in class net.minecraft.entity.Entitypublic void showParticles(EntityBroom broom)
protected void collideWithNearbyEntities()
protected void updateMountedClient()
public boolean canConsume(int amount,
net.minecraft.entity.LivingEntity entityLiving)
public void consume(int amount,
net.minecraft.entity.LivingEntity entityLiving)
protected void updateMountedServer()
public double getLastPlayerSpeed()
public void setLastPlayerSpeed(double lastPlayerSpeed)
protected void updateUnmounted()
protected double getHoverOffset()
public boolean onLivingFall(float distance,
float damageMultiplier)
onLivingFall in class net.minecraft.entity.Entitypublic boolean canBeRiddenInWater(net.minecraft.entity.Entity rider)
protected void registerData()
registerData in class net.minecraft.entity.Entityprotected void readAdditional(net.minecraft.nbt.CompoundNBT nbttagcompound)
readAdditional in class net.minecraft.entity.Entityprotected void writeAdditional(net.minecraft.nbt.CompoundNBT nbttagcompound)
writeAdditional in class net.minecraft.entity.Entitypublic void setBroomStack(net.minecraft.item.ItemStack itemStack)
public net.minecraft.item.ItemStack getBroomStack()
public java.util.Map<BroomModifier,java.lang.Float> getModifiers()
public float getModifier(BroomModifier modifier)
public net.minecraft.nbt.CompoundNBT writeWithoutTypeId(net.minecraft.nbt.CompoundNBT tag)
writeWithoutTypeId in class net.minecraft.entity.Entitypublic void read(net.minecraft.nbt.CompoundNBT tagCompound)
read in class net.minecraft.entity.Entity