java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.entity.Entity>
net.minecraft.world.entity.Entity
com.simibubi.create.content.contraptions.components.structureMovement.glue.SuperGlueEntity
All Implemented Interfaces:
com.jozufozu.flywheel.backend.instancing.IInstanceRendered, ISpecialEntityItemRequirement, net.minecraft.commands.CommandSource, net.minecraft.world.level.entity.EntityAccess, net.minecraft.world.Nameable, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.entity.Entity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.entity.IEntityAdditionalSpawnData

public class SuperGlueEntity extends net.minecraft.world.entity.Entity implements net.minecraftforge.entity.IEntityAdditionalSpawnData, ISpecialEntityItemRequirement, com.jozufozu.flywheel.backend.instancing.IInstanceRendered
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity

    net.minecraft.world.entity.Entity.MoveFunction, net.minecraft.world.entity.Entity.MovementEmission, net.minecraft.world.entity.Entity.RemovalReason

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.minecraft.core.Direction
     
    protected net.minecraft.core.BlockPos
     

    Fields inherited from class net.minecraft.world.entity.Entity

    BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, fluidOnEyes, flyDist, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, level, LOGGER, MAX_ENTITY_TAG_COUNT, maxUpStep, minorHorizontalCollision, moveDist, noCulling, noPhysics, onGround, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld

    Fields inherited from interface net.minecraft.commands.CommandSource

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    SuperGlueEntity(net.minecraft.world.entity.EntityType<?> type, net.minecraft.world.level.Level world)
     
    SuperGlueEntity(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
     
    static net.minecraft.world.entity.EntityType.Builder<?>
    build(net.minecraft.world.entity.EntityType.Builder<?> builder)
     
    protected void
     
    net.minecraft.network.protocol.Packet<?>
     
    net.minecraft.core.Direction
    getAttachedDirection(net.minecraft.core.BlockPos pos)
     
    net.minecraft.core.Direction
     
    protected float
    getEyeHeight(net.minecraft.world.entity.Pose poseIn, net.minecraft.world.entity.EntityDimensions sizeIn)
     
    net.minecraft.core.Direction
     
    net.minecraft.core.BlockPos
     
    int
     
    net.minecraft.world.item.ItemStack
    getPickedResult(net.minecraft.world.phys.HitResult target)
     
     
    int
     
    net.minecraft.world.level.Level
     
    boolean
    hurt(net.minecraft.world.damagesource.DamageSource source, float amount)
     
    net.minecraft.world.InteractionResult
    interact(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
     
    boolean
     
    boolean
     
    static boolean
    isSideSticky(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
     
    static boolean
    isValidFace(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
     
    boolean
     
    float
    mirror(net.minecraft.world.level.block.Mirror transformMirror)
     
    void
    move(net.minecraft.world.entity.MoverType typeIn, net.minecraft.world.phys.Vec3 pos)
     
    void
    onBroken(net.minecraft.world.entity.Entity breaker)
     
    boolean
     
    void
     
    void
    push(double x, double y, double z)
     
    void
    push(net.minecraft.world.entity.Entity entityIn)
     
    void
    readAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
     
    void
    readSpawnData(net.minecraft.network.FriendlyByteBuf additionalData)
     
    void
     
    protected boolean
     
    float
    rotate(net.minecraft.world.level.block.Rotation transformRotation)
     
    void
    setPos(double x, double y, double z)
     
    boolean
    skipAttackInteraction(net.minecraft.world.entity.Entity entity)
     
    net.minecraft.world.entity.item.ItemEntity
    spawnAtLocation(net.minecraft.world.item.ItemStack stack, float yOffset)
     
    void
    thunderHit(net.minecraft.server.level.ServerLevel world, net.minecraft.world.entity.LightningBolt lightningBolt)
     
    void
     
    protected void
     
    protected void
     
    void
    writeSpawnData(net.minecraft.network.FriendlyByteBuf buffer)
     

    Methods inherited from class net.minecraft.world.entity.Entity

    absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, animateHurt, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canFreeze, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkDespawn, checkFallDamage, checkInsideBlocks, checkOutOfWorld, chunkPosition, clearFire, closerThan, collideBoundingBox, copyPosition, createCommandSourceStack, createHoverEvent, discard, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, eyeBlockPosition, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, gameEvent, gameEvent, gameEvent, gameEvent, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForCulling, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getForward, getGameEventListenerRegistrar, getHandSlots, getId, getIndirectPassengers, getLeashOffset, getLevel, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getMovementEmission, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSlot, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getX, getX, getXRot, getY, getY, getYHeadRot, getYRot, getZ, getZ, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCurrentlyGlowing, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFullyFrozen, isHorizontalCollisionMinor, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushable, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killed, lavaHurt, lerpHeadTo, lerpMotion, lerpTo, limitPistonMovement, load, lookAt, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, occludesVibrations, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, outOfWorld, pick, playEntityOnFireExtinguishedSound, playerTouch, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, reapplyPosition, recreateFromPacket, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, resetFallDistance, restoreFrom, revive, rideableUnderWater, rideTick, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setItemSlot, setLevelCallback, setNoGravity, setOldPosAndRot, setOnGround, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSprinting, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYBodyRot, setYHeadRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, shouldShowName, showVehicleHealth, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, teleportTo, teleportToWithTicket, toString, touchingUnloadedChunk, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.commands.CommandSource

    alwaysAccepts

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity

    canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getParts, isMultipartEntity, serializeNBT, shouldRiderSit

    Methods inherited from interface com.jozufozu.flywheel.backend.instancing.IInstanceRendered

    shouldRenderNormally
  • Field Details

    • hangingPosition

      protected net.minecraft.core.BlockPos hangingPosition
    • facingDirection

      protected net.minecraft.core.Direction facingDirection
  • Constructor Details

    • SuperGlueEntity

      public SuperGlueEntity(net.minecraft.world.entity.EntityType<?> type, net.minecraft.world.level.Level world)
    • SuperGlueEntity

      public SuperGlueEntity(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
  • Method Details

    • defineSynchedData

      protected void defineSynchedData()
      Specified by:
      defineSynchedData in class net.minecraft.world.entity.Entity
    • getWidthPixels

      public int getWidthPixels()
    • getHeightPixels

      public int getHeightPixels()
    • onBroken

      public void onBroken(@Nullable net.minecraft.world.entity.Entity breaker)
    • playPlaceSound

      public void playPlaceSound()
    • updateFacingWithBoundingBox

      protected void updateFacingWithBoundingBox()
    • updateBoundingBox

      protected void updateBoundingBox()
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.world.entity.Entity
    • isVisible

      public boolean isVisible()
    • onValidSurface

      public boolean onValidSurface()
    • isValidFace

      public static boolean isValidFace(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
    • isSideSticky

      public static boolean isSideSticky(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
    • isPickable

      public boolean isPickable()
      Overrides:
      isPickable in class net.minecraft.world.entity.Entity
    • skipAttackInteraction

      public boolean skipAttackInteraction(net.minecraft.world.entity.Entity entity)
      Overrides:
      skipAttackInteraction in class net.minecraft.world.entity.Entity
    • getDirection

      public net.minecraft.core.Direction getDirection()
      Overrides:
      getDirection in class net.minecraft.world.entity.Entity
    • hurt

      public boolean hurt(net.minecraft.world.damagesource.DamageSource source, float amount)
      Overrides:
      hurt in class net.minecraft.world.entity.Entity
    • move

      public void move(net.minecraft.world.entity.MoverType typeIn, net.minecraft.world.phys.Vec3 pos)
      Overrides:
      move in class net.minecraft.world.entity.Entity
    • push

      public void push(double x, double y, double z)
      Overrides:
      push in class net.minecraft.world.entity.Entity
    • getEyeHeight

      protected float getEyeHeight(net.minecraft.world.entity.Pose poseIn, net.minecraft.world.entity.EntityDimensions sizeIn)
      Overrides:
      getEyeHeight in class net.minecraft.world.entity.Entity
    • getPickedResult

      public net.minecraft.world.item.ItemStack getPickedResult(net.minecraft.world.phys.HitResult target)
      Specified by:
      getPickedResult in interface net.minecraftforge.common.extensions.IForgeEntity
    • push

      public void push(net.minecraft.world.entity.Entity entityIn)
      Overrides:
      push in class net.minecraft.world.entity.Entity
    • interact

      public net.minecraft.world.InteractionResult interact(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
      Overrides:
      interact in class net.minecraft.world.entity.Entity
    • addAdditionalSaveData

      public void addAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
      Specified by:
      addAdditionalSaveData in class net.minecraft.world.entity.Entity
    • readAdditionalSaveData

      public void readAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
      Specified by:
      readAdditionalSaveData in class net.minecraft.world.entity.Entity
    • spawnAtLocation

      public net.minecraft.world.entity.item.ItemEntity spawnAtLocation(net.minecraft.world.item.ItemStack stack, float yOffset)
      Overrides:
      spawnAtLocation in class net.minecraft.world.entity.Entity
    • repositionEntityAfterLoad

      protected boolean repositionEntityAfterLoad()
      Overrides:
      repositionEntityAfterLoad in class net.minecraft.world.entity.Entity
    • setPos

      public void setPos(double x, double y, double z)
      Overrides:
      setPos in class net.minecraft.world.entity.Entity
    • rotate

      public float rotate(net.minecraft.world.level.block.Rotation transformRotation)
      Overrides:
      rotate in class net.minecraft.world.entity.Entity
    • getHangingPosition

      public net.minecraft.core.BlockPos getHangingPosition()
    • mirror

      public float mirror(net.minecraft.world.level.block.Mirror transformMirror)
      Overrides:
      mirror in class net.minecraft.world.entity.Entity
    • getAttachedDirection

      public net.minecraft.core.Direction getAttachedDirection(net.minecraft.core.BlockPos pos)
    • thunderHit

      public void thunderHit(net.minecraft.server.level.ServerLevel world, net.minecraft.world.entity.LightningBolt lightningBolt)
      Overrides:
      thunderHit in class net.minecraft.world.entity.Entity
    • refreshDimensions

      public void refreshDimensions()
      Overrides:
      refreshDimensions in class net.minecraft.world.entity.Entity
    • build

      public static net.minecraft.world.entity.EntityType.Builder<?> build(net.minecraft.world.entity.EntityType.Builder<?> builder)
    • getAddEntityPacket

      public net.minecraft.network.protocol.Packet<?> getAddEntityPacket()
      Specified by:
      getAddEntityPacket in class net.minecraft.world.entity.Entity
    • writeSpawnData

      public void writeSpawnData(net.minecraft.network.FriendlyByteBuf buffer)
      Specified by:
      writeSpawnData in interface net.minecraftforge.entity.IEntityAdditionalSpawnData
    • readSpawnData

      public void readSpawnData(net.minecraft.network.FriendlyByteBuf additionalData)
      Specified by:
      readSpawnData in interface net.minecraftforge.entity.IEntityAdditionalSpawnData
    • getFacingDirection

      public net.minecraft.core.Direction getFacingDirection()
    • getRequiredItems

      public ItemRequirement getRequiredItems()
      Specified by:
      getRequiredItems in interface ISpecialEntityItemRequirement
    • isIgnoringBlockTriggers

      public boolean isIgnoringBlockTriggers()
      Overrides:
      isIgnoringBlockTriggers in class net.minecraft.world.entity.Entity
    • getWorld

      public net.minecraft.world.level.Level getWorld()
      Specified by:
      getWorld in interface com.jozufozu.flywheel.backend.instancing.IInstanceRendered