Class EntityLeashKnot

  • All Implemented Interfaces:
    org.teavm.jso.JSObject

    public class EntityLeashKnot
    extends EntityHanging
    + This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Constructor Detail

      • EntityLeashKnot

        public EntityLeashKnot​(World worldIn)
      • EntityLeashKnot

        public EntityLeashKnot​(World worldIn,
                               BlockPos hangingPositionIn)
    • Method Detail

      • isInRangeToRenderDist

        public boolean isInRangeToRenderDist​(double d0)
        + Checks if the entity is in range to render by using the past in distance and comparing it to its average edge length * 64 * renderDistanceWeight Args: distance
        Overrides:
        isInRangeToRenderDist in class Entity
      • onBroken

        public void onBroken​(Entity var1)
        + Called when this entity is broken. Entity parameter may be null.
        Specified by:
        onBroken in class EntityHanging
      • writeToNBTOptional

        public boolean writeToNBTOptional​(NBTTagCompound var1)
        + Either write this entity to the NBT tag given and return true, or return false without doing anything. If this returns false the entity is not saved on disk. Ridden entities return false here as they are saved with their rider.
        Overrides:
        writeToNBTOptional in class Entity
      • interactFirst

        public boolean interactFirst​(EntityPlayer entityplayer)
        + First layer of player interaction
        Overrides:
        interactFirst in class Entity
      • onValidSurface

        public boolean onValidSurface()
        + checks to make sure painting can be placed there
        Overrides:
        onValidSurface in class EntityHanging