public class EntityBroom extends net.minecraft.entity.Entity implements IConfigurable
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.entity.player.EntityPlayer |
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, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
EntityBroom(net.minecraft.world.World world)
Make a new instance in the given world.
|
EntityBroom(net.minecraft.world.World world,
double x,
double y,
double z)
Make a new instance at the given location in a world.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeCollidedWith() |
protected void |
entityInit() |
protected void |
fall(float par1) |
ExtendedConfig<?> |
getConfig() |
protected double |
getHoverOffset() |
double |
getMountedYOffset() |
protected void |
initBroomHoverTickOffset() |
boolean |
interactFirst(net.minecraft.entity.player.EntityPlayer player) |
void |
mountEntity(net.minecraft.entity.Entity entity) |
void |
onUpdate() |
protected void |
readEntityFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
setPositionAndRotation2(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements) |
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 |
writeEntityToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, attackEntityFrom, canAttackWithItem, canBePushed, canRenderOnFire, canRiderInteract, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doesEntityNotTriggerPressurePlate, dropItem, entityDropItem, equals, extinguish, func_145748_c_, func_145771_j, func_145772_a, func_145774_a, func_145775_I, func_145778_a, func_145780_a, func_145781_i, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCommandSenderName, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityId, getEntityString, getExtendedProperties, getEyeHeight, getFlag, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getParts, getPersistentID, getPickedResult, getPortalCooldown, getRotationYawHead, getShadowSize, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, isBurning, isCreatureType, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, kill, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onKillEntity, onStruckByLightning, performHurtAnimation, playSound, preparePlayerToSpawn, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setDead, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, toString, travelToDimension, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptionalpublic static final double SPEED
public static final float MAX_ANGLE
public static final float MIN_ANGLE
public net.minecraft.entity.player.EntityPlayer lastMounted
public EntityBroom(net.minecraft.world.World world)
world - The world to make it in.public EntityBroom(net.minecraft.world.World world,
double x,
double y,
double z)
world - The world.x - X coordinate.y - Y coordinate.z - Z coordinate.protected void initBroomHoverTickOffset()
public double getMountedYOffset()
getMountedYOffset in class net.minecraft.entity.Entitypublic boolean canBeCollidedWith()
canBeCollidedWith in class net.minecraft.entity.Entitypublic boolean interactFirst(net.minecraft.entity.player.EntityPlayer player)
interactFirst in class net.minecraft.entity.Entitypublic void mountEntity(net.minecraft.entity.Entity entity)
mountEntity in class net.minecraft.entity.Entitypublic void setPositionAndRotation2(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements)
setPositionAndRotation2 in class net.minecraft.entity.Entitypublic void onUpdate()
onUpdate in class net.minecraft.entity.Entityprotected void updateMountedClient()
protected void updateMountedServer()
protected void updateUnmounted()
protected double getHoverOffset()
protected void fall(float par1)
fall in class net.minecraft.entity.Entityprotected void entityInit()
entityInit in class net.minecraft.entity.Entityprotected void readEntityFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readEntityFromNBT in class net.minecraft.entity.Entityprotected void writeEntityToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeEntityToNBT in class net.minecraft.entity.Entitypublic ExtendedConfig<?> getConfig()
getConfig in interface IConfigurable