Available Methods
- attackEntityFrom ( )
- getEyeHeight ( )
- isSneaking ( )
- setLocationAndAngles ( )
- getPositionVector ( )
- getEntityId ( )
- getLook ( )
- setDead ( )
- getEntityWorld ( )
- setFire ( )
- getBukkitEntity ( )
- isBeingRidden ( )
- getPosition ( )
- getPositionEyes ( )
- getEntityBoundingBox ( )
- setPosition ( )
- setGlowing ( )
- getCapability ( )
- isCreatureType ( )
- getDistanceSqToEntity ( )
- setWorld ( )
- startRiding ( )
- getDistanceToEntity ( )
- setVelocity ( )
- getClass ( )
- getDistanceSq ( )
- writeToNBT ( )
- getName ( )
- moveEntity ( )
- isEntityAlive ( )
- getVelocity ( )
- refreshPositionAndAngles ( )
- slowMovement ( )
- setPositionAndUpdate ( )
- getPassengers ( )
- getPos ( )
- getCustomNameTag ( )
- rayTrace ( )
- getY ( )
- isGlowing ( )
- isInWater ( )
- writeToNBTOptional ( )
- hasNoGravity ( )
- getEntityData ( )
- getExtendedProperties ( )
- getUniqueID ( )
- doesEntityNotTriggerPressurePlate ( )
- getCameraPosVec ( )
- hasCustomName ( )
- isRiding ( )
Related Classes
- java.util.Iterator
- java.util.UUID
- java.util.stream.Collectors
- javax.annotation.Nullable
- javax.annotation.Nonnull
- org.jetbrains.annotations.NotNull
- org.lwjgl.opengl.GL11
- net.minecraft.world.World
- net.minecraft.item.ItemStack
- net.minecraft.block.Block
- net.minecraft.client.Minecraft
- net.minecraftforge.common.MinecraftForge
- net.minecraft.entity.player.EntityPlayer
- net.minecraft.util.ResourceLocation
- net.minecraft.nbt.NBTTagCompound
- net.minecraft.tileentity.TileEntity
- net.minecraft.init.Blocks
- net.minecraft.block.material.Material
- net.minecraft.entity.EntityLivingBase
- net.minecraft.entity.player.EntityPlayerMP
- net.minecraft.util.math.BlockPos
- net.minecraft.server.MinecraftServer
- net.minecraft.entity.item.EntityItem
- net.minecraft.world.chunk.Chunk
- net.minecraftforge.fml.common.eventhandler.SubscribeEvent
Java Code Examples for net.minecraft.entity.Entity#slowMovement()
The following examples show how to use
net.minecraft.entity.Entity#slowMovement() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MoonBerryBushBlock.java From Galacticraft-Rewoven with MIT License | 6 votes |
@Override public void onEntityCollision(BlockState blockState, World world, BlockPos blockPos, Entity entity) { entity.slowMovement(blockState, new Vec3d(0.800000011920929D, 0.75D, 0.800000011920929D)); }
Example 2
Source File: BramblesBlock.java From the-hallow with MIT License | 6 votes |
@SuppressWarnings("deprecation") @Override public void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) { if (entity instanceof LivingEntity && entity.getType() != HallowedEntities.CROW && entity.getType() != HallowedEntities.PUMPCOWN) { entity.slowMovement(state, new Vec3d(0.800000011920929D, 0.75D, 0.800000011920929D)); if (!world.isClient && (entity.lastRenderX != entity.getX() || entity.lastRenderZ != entity.getZ())) { double entityX = Math.abs(entity.getX() - entity.lastRenderX); double entityZ = Math.abs(entity.getZ() - entity.lastRenderZ); if (entityX >= 0.003000000026077032D || entityZ >= 0.003000000026077032D) { entity.damage(DAMAGE_SOURCE, 1.0F); } } } }