public class EntityBroom
extends net.minecraft.entity.Entity
implements org.cyclops.cyclopscore.config.configurable.IConfigurable
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.entity.EntityLivingBase |
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, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, 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, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, world| 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 |
|---|---|
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 |
canConsume(int amount,
net.minecraft.entity.EntityLivingBase entityLiving) |
protected boolean |
canTriggerWalking() |
protected void |
collideWithNearbyEntities() |
void |
consume(int amount,
net.minecraft.entity.EntityLivingBase entityLiving) |
protected void |
entityInit() |
void |
fall(float distance,
float damageMultiplier) |
net.minecraft.item.ItemStack |
getBroomStack() |
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<?> |
getConfig() |
net.minecraft.entity.Entity |
getControllingPassenger() |
protected double |
getHoverOffset() |
double |
getLastPlayerSpeed() |
float |
getModifier(BroomModifier modifier) |
java.util.Map<BroomModifier,java.lang.Float> |
getModifiers() |
double |
getMountedYOffset() |
protected void |
initBroomHoverTickOffset() |
void |
onUpdate() |
boolean |
processInitialInteract(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand) |
protected void |
readEntityFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound tagCompound) |
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.EntityLivingBase entity) |
void |
stopAllowFlying(net.minecraft.entity.EntityLivingBase entity) |
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) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound tag) |
addEntityCrashInfo, addTag, addToPlayerScore, addTrackingPlayer, addVelocity, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBePushed, canBeRidden, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTrample, canUseCommand, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, dismountRidingEntity, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCapability, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getFireImmuneTicks, getFlag, getForward, getHeldEquipment, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, 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, hasNoGravity, hitByEntity, ignoreItemEntityData, 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, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onCollideWithPlayer, onEntityUpdate, onKillCommand, onKillEntity, onStruckByLightning, performHurtAnimation, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetEntityId, resetHeight, resetPositionToBB, sendCommandFeedback, sendMessage, serializeNBT, setAir, setAlwaysRenderNameTag, setBeenAttacked, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setItemStackToSlot, setLocationAndAngles, setNoGravity, 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, turn, updateFallState, updatePassenger, updateRidden, verifyExplosion, writeToNBTAtomically, writeToNBTOptionalpublic static final double SPEED
public static final float MAX_ANGLE
public static final float MIN_ANGLE
public net.minecraft.entity.EntityLivingBase 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.Entityprotected boolean canTriggerWalking()
canTriggerWalking 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.util.EnumHand 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.EntityLivingBase entity)
public void stopAllowFlying(net.minecraft.entity.EntityLivingBase entity)
protected void addPassenger(net.minecraft.entity.Entity passenger)
addPassenger in class net.minecraft.entity.Entitypublic void onUpdate()
onUpdate in class net.minecraft.entity.Entitypublic void showParticles(EntityBroom broom)
protected void collideWithNearbyEntities()
protected void updateMountedClient()
public boolean canConsume(int amount,
net.minecraft.entity.EntityLivingBase entityLiving)
public void consume(int amount,
net.minecraft.entity.EntityLivingBase entityLiving)
protected void updateMountedServer()
public double getLastPlayerSpeed()
public void setLastPlayerSpeed(double lastPlayerSpeed)
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.IConfigurablepublic 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.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound tag)
writeToNBT in class net.minecraft.entity.Entitypublic void readFromNBT(net.minecraft.nbt.NBTTagCompound tagCompound)
readFromNBT in class net.minecraft.entity.Entity