Package btw.entity
Class CanvasEntity
java.lang.Object
net.minecraft.src.Entity
btw.entity.CanvasEntity
- All Implemented Interfaces:
EntityWithCustomPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintintintthe direction the painting facesFields inherited from class net.minecraft.src.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastGroundPosX, lastGroundPosY, lastGroundPosZ, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, nextBlockCheckDistance, 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 Summary
ConstructorsConstructorDescriptionCanvasEntity(World par1World) CanvasEntity(World par1World, int i, int j, int k, int iFacing) CanvasEntity(World par1World, int i, int j, int k, int iFacing, int iArtOrdinal) CanvasEntity(World par1World, int par2, int par3, int par4, int par5, String par6Str) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVelocity(double par1, double par3, double par5) Adds to the current velocity of the entity.booleanattackEntityFrom(DamageSource source, float damage) Called when the entity is attacked.booleanReturns true if other Entities should be prevented from moving through this Entity.protected voidvoidfunc_412_b(int iFacing) intintbooleanvoidmoveEntity(double par1, double par3, double par5) Tries to moves the entity by the passed in displacement.voidvoidonUpdate()Called to update the entity's position/logic.booleanchecks to make sure painting can be placed therevoidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetDead()Called when painting is destroyed.booleanPartially disables server-side visibility tests for interacting with an entityprotected booleanvoidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, appliesConstantForceWhenRidingBoat, applyEntityCollision, attractsLightning, canAttackWithItem, canBePushed, canCollideWithEntity, canEntityTriggerTripwire, canRenderOnFire, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityApplyToSpawnCap, doesEntityApplyToSquidPossessionCap, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getAnimalKickMovementMultiplier, getBlockExplosionResistance, getBoundingBox, getBrightness, getBrightnessForRender, getCanBeHeadCrabbed, getCollisionBorderSize, getCollisionBox, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityName, getEntityString, getEyeHeight, getFlag, getHeadCrabSharedAttackTarget, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getMountedYOffset, getParts, getPortalCooldown, getRotationYawHead, getShadowSize, getTeleportDirection, getTranslatedEntityName, getUniqueID, getVisualBoundingBox, getXZDistanceSqToEntity, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hasComponent, hashCode, hasHeadCrabbedSquid, hitByEntity, initComponents, interactFirst, isAffectedByMovementModifiers, isBeingRainedOn, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInsideOpaqueBlock, isEntityInsideSuffocatingBlock, isEntityInsideSuffocatingBlock, isEntityInvulnerable, isImmuneToFire, isImmuneToHeadCrabDamage, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isItemEntity, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSecondaryTargetForSquid, isSneaking, isSprinting, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isValidZombieSecondaryTarget, isWet, kill, mountEntity, mountEntityRemote, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, outOfUpdateRangeUpdate, performHurtAnimation, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setEating, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setPositionAndRotation2, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setVelocity, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
direction
public int directionthe direction the painting faces -
canvasPosX
public int canvasPosX -
canvasPosY
public int canvasPosY -
canvasPosZ
public int canvasPosZ -
art
-
-
Constructor Details
-
CanvasEntity
-
CanvasEntity
-
CanvasEntity
-
CanvasEntity
-
-
Method Details
-
entityInit
protected void entityInit()- Specified by:
entityInitin classEntity
-
func_412_b
public void func_412_b(int iFacing) -
onUpdate
public void onUpdate()Called to update the entity's position/logic. -
onValidSurface
public boolean onValidSurface()checks to make sure painting can be placed there -
canBeCollidedWith
public boolean canBeCollidedWith()Returns true if other Entities should be prevented from moving through this Entity.- Overrides:
canBeCollidedWithin classEntity
-
attackEntityFrom
Called when the entity is attacked.- Overrides:
attackEntityFromin classEntity
-
onBroken
-
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Specified by:
writeEntityToNBTin classEntity
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Specified by:
readEntityFromNBTin classEntity
-
moveEntity
public void moveEntity(double par1, double par3, double par5) Tries to moves the entity by the passed in displacement. Args: x, y, z- Overrides:
moveEntityin classEntity
-
addVelocity
public void addVelocity(double par1, double par3, double par5) Adds to the current velocity of the entity. Args: x, y, z- Overrides:
addVelocityin classEntity
-
setDead
public void setDead()Called when painting is destroyed. Plays break sound effect -
getSpawnPacketForThisEntity
- Specified by:
getSpawnPacketForThisEntityin interfaceEntityWithCustomPacket- Returns:
- Custom packet containing information for this entity to send from the server to the client
-
getTrackerViewDistance
public int getTrackerViewDistance()- Specified by:
getTrackerViewDistancein interfaceEntityWithCustomPacket
-
getTrackerUpdateFrequency
public int getTrackerUpdateFrequency()- Specified by:
getTrackerUpdateFrequencyin interfaceEntityWithCustomPacket
-
getTrackMotion
public boolean getTrackMotion()- Specified by:
getTrackMotionin interfaceEntityWithCustomPacket
-
shouldServerTreatAsOversized
public boolean shouldServerTreatAsOversized()Description copied from interface:EntityWithCustomPacketPartially disables server-side visibility tests for interacting with an entity- Specified by:
shouldServerTreatAsOversizedin interfaceEntityWithCustomPacket
-
shouldSetPositionOnLoad
protected boolean shouldSetPositionOnLoad()- Overrides:
shouldSetPositionOnLoadin classEntity
-