public abstract class EntityLogisticsFrame extends EntitySemiblockBase implements IDirectionalSemiblock
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityLogisticsFrame.FluidFilter |
class |
EntityLogisticsFrame.ItemFilterHandler
Specialised item handler which caches a list of non-empty filter stacks, for more efficient iteration over them.
|
static class |
EntityLogisticsFrame.Listener |
| Modifier and Type | Field and Description |
|---|---|
double |
antiZfight |
static int |
FLUID_FILTER_SLOTS |
static java.lang.String |
NBT_FLUID_FILTERS |
static java.lang.String |
NBT_FLUID_WHITELIST |
static java.lang.String |
NBT_INVISIBLE |
static java.lang.String |
NBT_ITEM_FILTERS |
static java.lang.String |
NBT_ITEM_WHITELIST |
static java.lang.String |
NBT_MATCH_DURABILITY |
static java.lang.String |
NBT_MATCH_MODID |
static java.lang.String |
NBT_MATCH_NBT |
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| Modifier and Type | Method and Description |
|---|---|
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 |
canFilterStack() |
boolean |
canPlace(net.minecraft.util.Direction facing)
Check if this semiblock can be placed here.
|
boolean |
canStay()
Check if this semiblock can remain here.
|
void |
clearIncomingStack(net.minecraftforge.fluids.FluidStack stack) |
void |
clearIncomingStack(net.minecraft.item.ItemStack stack) |
protected void |
defineSynchedData() |
static EntityLogisticsFrame |
fromItemStack(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack stack)
Get a logistics entity from the given item stack.
|
int |
getAlpha() |
abstract int |
getColor()
A color in ARGB format.
|
protected abstract net.minecraft.inventory.container.ContainerType<?> |
getContainerType() |
net.minecraftforge.fluids.FluidStack |
getFluidFilter(int filterIndex) |
int |
getIncomingFluid(net.minecraft.fluid.Fluid fluid) |
int |
getIncomingItems(net.minecraft.item.ItemStack stack) |
EntityLogisticsFrame.ItemFilterHandler |
getItemFilterHandler() |
abstract int |
getPriority() |
net.minecraft.util.Direction |
getSide() |
abstract net.minecraft.util.ResourceLocation |
getTexture() |
void |
informIncomingStack(net.minecraftforge.fluids.FluidStack stack) |
void |
informIncomingStack(net.minecraft.item.ItemStack stack) |
boolean |
isFluidWhiteList() |
boolean |
isItemWhiteList() |
boolean |
isMatchDurability() |
boolean |
isMatchModId() |
boolean |
isMatchNBT() |
boolean |
isObstructed(net.minecraft.pathfinding.PathType pathType) |
boolean |
isSemiblockInvisible()
Not to be confused with
Entity.isInvisible() |
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 tag) |
void |
readFromBuf(net.minecraft.network.PacketBuffer payload)
Read this semiblock from network buffer for network sync purposes.
|
net.minecraft.nbt.CompoundNBT |
serializeNBT(net.minecraft.nbt.CompoundNBT tag)
Written to the dropped item (under the "EntityTag" subtag) when the semiblock is broken, to persisted entity
data by
Entity#writeAdditional(), and displayed by info mods such as TOP or Waila. |
void |
setFluidFilter(int filterIndex,
net.minecraftforge.fluids.FluidStack stack) |
void |
setFluidWhiteList(boolean whiteList) |
void |
setItemFilter(int slot,
net.minecraft.item.ItemStack stack) |
void |
setItemWhiteList(boolean whiteList) |
void |
setMatchDurability(boolean matchDurability) |
void |
setMatchModId(boolean matchModId) |
void |
setMatchNBT(boolean matchNBT) |
void |
setSemiblockInvisible(boolean invisible) |
void |
setSide(net.minecraft.util.Direction facing) |
boolean |
shouldProvideTo(int level) |
boolean |
supportsBlacklisting() |
void |
tick()
Implement tick logic here.
|
void |
writeToBuf(net.minecraft.network.PacketBuffer payload)
Write this semiblock to network buffer for network sync purposes.
|
addAdditionalSaveData, canCoexist, getAddEntityPacket, getBlockBounds, getBlockPos, getBlockState, getBrightness, getCachedTileEntity, getDamageTaken, getDroppedItem, getDrops, getSemiblockId, getTimeSinceHit, getTrackingId, getWorld, handleGUIButtonPress, hurt, interactAt, isAir, isNoGravity, isPickable, isValid, onAddedToWorld, onBroken, onRemovedFromWorld, removeSemiblock, setPosabsMoveTo, 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, getDisplayName, 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, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitbyTrackingId, getDisplayNamepublic static final java.lang.String NBT_INVISIBLE
public static final java.lang.String NBT_MATCH_NBT
public static final java.lang.String NBT_MATCH_DURABILITY
public static final java.lang.String NBT_MATCH_MODID
public static final java.lang.String NBT_ITEM_WHITELIST
public static final java.lang.String NBT_FLUID_WHITELIST
public static final java.lang.String NBT_ITEM_FILTERS
public static final java.lang.String NBT_FLUID_FILTERS
public static final int FLUID_FILTER_SLOTS
public final double antiZfight
public static EntityLogisticsFrame fromItemStack(net.minecraft.world.World world, @Nullable net.minecraft.entity.player.PlayerEntity player, @Nonnull net.minecraft.item.ItemStack stack)
world - the playerplayer - the player (may be null; this could be used for tooltip purposes)stack - the item stackprotected void defineSynchedData()
defineSynchedData in class EntitySemiblockBasepublic boolean canPlace(net.minecraft.util.Direction facing)
ISemiBlockcanPlace in interface ISemiBlockfacing - the side of the block against which it is placedpublic boolean canStay()
EntitySemiblockBasecanStay in class EntitySemiblockBaseprotected net.minecraft.util.math.AxisAlignedBB calculateBlockBounds()
EntitySemiblockBaseEntity.getBoundingBox().calculateBlockBounds in class EntitySemiblockBasepublic abstract int getColor()
ISemiBlockgetColor in interface ISemiBlockpublic abstract net.minecraft.util.ResourceLocation getTexture()
public abstract int getPriority()
protected abstract net.minecraft.inventory.container.ContainerType<?> getContainerType()
public boolean shouldProvideTo(int level)
public boolean isSemiblockInvisible()
Entity.isInvisible()public void setSemiblockInvisible(boolean invisible)
public net.minecraft.util.Direction getSide()
getSide in interface IDirectionalSemiblockpublic void setSide(net.minecraft.util.Direction facing)
setSide in interface IDirectionalSemiblockpublic int getAlpha()
public boolean isItemWhiteList()
public void setItemWhiteList(boolean whiteList)
public boolean isFluidWhiteList()
public void setFluidWhiteList(boolean whiteList)
public boolean isMatchNBT()
public void setMatchNBT(boolean matchNBT)
public boolean isMatchDurability()
public void setMatchDurability(boolean matchDurability)
public boolean isMatchModId()
public void setMatchModId(boolean matchModId)
public void tick()
ISemiBlocksuper.tick() in subclass overrides!tick in interface ISemiBlocktick in class EntitySemiblockBasepublic void informIncomingStack(net.minecraft.item.ItemStack stack)
public void clearIncomingStack(net.minecraft.item.ItemStack stack)
public void informIncomingStack(net.minecraftforge.fluids.FluidStack stack)
public void clearIncomingStack(net.minecraftforge.fluids.FluidStack stack)
public int getIncomingFluid(net.minecraft.fluid.Fluid fluid)
public int getIncomingItems(net.minecraft.item.ItemStack stack)
public void setItemFilter(int slot,
net.minecraft.item.ItemStack stack)
public void setFluidFilter(int filterIndex,
net.minecraftforge.fluids.FluidStack stack)
public net.minecraftforge.fluids.FluidStack getFluidFilter(int filterIndex)
public EntityLogisticsFrame.ItemFilterHandler getItemFilterHandler()
protected void readAdditionalSaveData(net.minecraft.nbt.CompoundNBT tag)
readAdditionalSaveData in class EntitySemiblockBasepublic net.minecraft.nbt.CompoundNBT serializeNBT(net.minecraft.nbt.CompoundNBT tag)
ISemiBlockEntity#writeAdditional(), and displayed by info mods such as TOP or Waila. Use this method
rather than writeAdditional() for fields that either need to be serialized to the dropped item, or
displayed on TOP/Waila.
serializeNBT in interface ISemiBlockserializeNBT in class EntitySemiblockBasetag - NBT tag to write data topublic 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 canFilterStack()
public 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 shownpublic 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 boolean supportsBlacklisting()
public void writeToBuf(net.minecraft.network.PacketBuffer payload)
ISemiBlockwriteToBuf in interface ISemiBlockwriteToBuf in class EntitySemiblockBasepayload - the bufferpublic void readFromBuf(net.minecraft.network.PacketBuffer payload)
ISemiBlockreadFromBuf in interface ISemiBlockreadFromBuf in class EntitySemiblockBasepayload - the bufferpublic boolean isObstructed(net.minecraft.pathfinding.PathType pathType)