public class EntityTransferGadget extends EntitySemiblockBase implements IDirectionalSemiblock
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityTransferGadget.IOMode |
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld| Constructor and Description |
|---|
EntityTransferGadget(net.minecraft.entity.EntityType<?> entityTypeIn,
net.minecraft.world.World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAdditionalSaveData(net.minecraft.nbt.CompoundNBT compound) |
void |
addTooltip(java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.nbt.CompoundNBT tag,
boolean extended)
Add tooltip information for this semiblock.
|
protected net.minecraft.util.math.AxisAlignedBB |
calculateBlockBounds()
Get the bounding box for this entity, which by default is the bounding box of the block we're on.
|
boolean |
canPlace(net.minecraft.util.Direction facing)
Check if this semiblock can be placed here.
|
boolean |
canStay()
Check if this semiblock can remain here.
|
protected void |
defineSynchedData() |
EntityTransferGadget.IOMode |
getIOMode() |
net.minecraft.util.Direction |
getSide() |
net.minecraft.util.ActionResultType |
interactAt(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.vector.Vector3d hitVec,
net.minecraft.util.Hand hand) |
void |
onPlaced(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack stack,
net.minecraft.util.Direction facing)
Called immediately after the semiblock entity has been added to the world.
|
boolean |
onRightClickWithConfigurator(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Direction side)
Called when a semiblock is right-clicked with a Logistics Configurator
|
protected void |
readAdditionalSaveData(net.minecraft.nbt.CompoundNBT compound) |
void |
setSide(net.minecraft.util.Direction facing) |
void |
tick()
Implement tick logic here.
|
canCoexist, getAddEntityPacket, getBlockBounds, getBlockPos, getBlockState, getBrightness, getCachedTileEntity, getDamageTaken, getDisplayName, getDroppedItem, getDrops, getSemiblockId, getTimeSinceHit, getTrackingId, getWorld, handleGUIButtonPress, hurt, isAir, isNoGravity, isPickable, isValid, onAddedToWorld, onBroken, onRemovedFromWorld, readFromBuf, removeSemiblock, serializeNBT, setPos, writeToBufabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, animateHurt, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkDespawn, checkFallDamage, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBoundingBox, getBoundingBoxForCulling, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDirection, getDismountLocationForPassenger, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHandSlots, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getX, getX, getY, getY, getYHeadRot, getZ, getZ, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interact, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushable, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killed, lavaHurt, lerpHeadTo, lerpMotion, lerpTo, limitPistonMovement, load, lookAt, makeFlySound, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onSyncedDataUpdated, outOfWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, remove, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rideableUnderWater, rideTick, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setItemSlot, setLevel, setLocationFromBoundingbox, setNoGravity, setOnGround, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSlot, setSprinting, setSwimming, setUUID, setViewScale, setYBodyRot, setYHeadRot, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, shouldShowName, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimmingareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitbyTrackingId, getColorpublic EntityTransferGadget(net.minecraft.entity.EntityType<?> entityTypeIn,
net.minecraft.world.World worldIn)
protected void defineSynchedData()
defineSynchedData in class EntitySemiblockBasepublic void tick()
ISemiBlocksuper.tick() in subclass overrides!tick in interface ISemiBlocktick in class EntitySemiblockBasepublic void onPlaced(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack stack,
net.minecraft.util.Direction facing)
ISemiBlockonPlaced in interface ISemiBlockplayer - player who is placing the semiblockstack - itemstack used to create the entityfacing - the side of the block which was clicked to place the entitypublic boolean onRightClickWithConfigurator(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Direction side)
ISemiBlockonRightClickWithConfigurator in interface ISemiBlockplayer - the playerside - the side of the block being clickedpublic net.minecraft.util.ActionResultType interactAt(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.vector.Vector3d hitVec,
net.minecraft.util.Hand hand)
interactAt in class EntitySemiblockBasepublic boolean canStay()
EntitySemiblockBasecanStay in class EntitySemiblockBasepublic boolean canPlace(net.minecraft.util.Direction facing)
ISemiBlockcanPlace in interface ISemiBlockfacing - the side of the block against which it is placedpublic net.minecraft.util.Direction getSide()
getSide in interface IDirectionalSemiblockpublic void setSide(net.minecraft.util.Direction facing)
setSide in interface IDirectionalSemiblockpublic EntityTransferGadget.IOMode getIOMode()
protected void readAdditionalSaveData(net.minecraft.nbt.CompoundNBT compound)
readAdditionalSaveData in class EntitySemiblockBaseprotected void addAdditionalSaveData(net.minecraft.nbt.CompoundNBT compound)
addAdditionalSaveData in class EntitySemiblockBasepublic void addTooltip(java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.nbt.CompoundNBT tag,
boolean extended)
ISemiBlockaddTooltip in interface ISemiBlockcurInfo - append info to this listplayer - the player looking at the entity or itemtag - NBT data as saved by ISemiBlock.serializeNBT(CompoundNBT)extended - true if extended data should be shownprotected net.minecraft.util.math.AxisAlignedBB calculateBlockBounds()
EntitySemiblockBaseEntity.getBoundingBox().calculateBlockBounds in class EntitySemiblockBase