public class EntityBroom
extends net.minecraft.entity.Entity
implements org.cyclops.cyclopscore.config.configurable.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, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, field_184245_j, fireResistance, firstUpdate, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj| 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() |
void |
fall(float distance,
float damageMultiplier) |
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<?> |
getConfig() |
net.minecraft.entity.Entity |
getControllingPassenger() |
protected double |
getHoverOffset() |
double |
getMountedYOffset() |
protected void |
initBroomHoverTickOffset() |
void |
onUpdate() |
boolean |
processInitialInteract(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack,
net.minecraft.util.EnumHand hand) |
protected void |
readEntityFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
setPositionAndRotation2(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean isTeleport) |
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) |
addChatMessage, addEntityCrashInfo, addPassenger, addTag, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, attackEntityFrom, canAttackWithItem, canBePushed, canBeRidden, canCommandSenderUseCommand, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTriggerWalking, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, dismountRidingEntity, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_184213_bq, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBrightness, getBrightnessForRender, getCapability, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getFlag, getHeldEquipment, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getServer, getSoundCategory, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleStatusUpdate, handleWaterMovement, hasCapability, hasCustomName, hashCode, hitByEntity, isBeingRidden, isBurning, isCreatureType, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, kill, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onKillCommand, onKillEntity, onStruckByLightning, performHurtAnimation, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, removePassenger, removePassengers, removeTag, replaceItemInInventory, resetEntityId, resetHeight, resetPositionToBB, sendCommandFeedback, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setBeenAttacked, setBossNonVisibleTo, setBossVisibleTo, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setItemStackToSlot, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, toString, updateFallState, updatePassenger, updateRidden, verifyExplosion, writeToNBT, writeToNBTAtomically, 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 processInitialInteract(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack,
net.minecraft.util.EnumHand hand)
processInitialInteract in class net.minecraft.entity.Entitypublic void setPositionAndRotation2(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean isTeleport)
setPositionAndRotation2 in class net.minecraft.entity.Entitypublic net.minecraft.entity.Entity getControllingPassenger()
getControllingPassenger 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()
public void fall(float distance,
float damageMultiplier)
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 org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<?> getConfig()
getConfig in interface org.cyclops.cyclopscore.config.configurable.IConfigurable