public interface IPartHost extends ICustomCableConnection
| Modifier and Type | Method and Description |
|---|---|
AEPartLocation |
addPart(net.minecraft.item.ItemStack is,
AEPartLocation side,
net.minecraft.entity.player.EntityPlayer owner,
net.minecraft.util.EnumHand hand)
try to add a new part to the specified side, returns false if it failed to be added.
|
boolean |
canAddPart(net.minecraft.item.ItemStack part,
AEPartLocation side)
Test if you can add a part to the specified side of the Part Host,
AEPartLocation.UNKNOWN is used to
represent the cable in the middle. |
void |
cleanup()
remove host from world...
|
void |
clearContainer()
destroys the part container, for internal use.
|
AEColor |
getColor() |
IFacadeContainer |
getFacadeContainer() |
java.util.Set<LayerFlags> |
getLayerFlags() |
DimensionalCoord |
getLocation() |
IPart |
getPart(AEPartLocation side)
Get part by side ( center is
AEPartLocation.UNKNOWN ) |
IPart |
getPart(net.minecraft.util.EnumFacing side)
Get part by side, this method cannot aquire the center part, you must use the other varient of getPart.
|
net.minecraft.tileentity.TileEntity |
getTile() |
boolean |
hasRedstone(AEPartLocation side)
get the redstone state of host on this side, this value is cached internally.
|
boolean |
isBlocked(net.minecraft.util.EnumFacing side)
Used to test for FMP microblock blocking internally.
|
boolean |
isEmpty()
returns false if this block contains any parts or facades, true other wise.
|
boolean |
isInWorld()
true if the tile is in the world, other wise false.
|
void |
markForSave()
can be used by parts to trigger the tile or part to save.
|
void |
markForUpdate()
something changed, might want to send a packet to clients to update state.
|
void |
notifyNeighbors()
notify neighbors uf updated status.
|
void |
partChanged()
part of the
LayerBase |
void |
removePart(AEPartLocation side,
boolean suppressUpdate)
removes the part on the side, this doesn't drop it or anything, if you don't do something with it, its just
"gone" and its never coming back; think about it.
|
SelectedPart |
selectPart(net.minecraft.util.math.Vec3d pos)
finds the part located at the position ( pos must be relative, not global )
|
getCableConnectionLengthIFacadeContainer getFacadeContainer()
boolean canAddPart(net.minecraft.item.ItemStack part,
AEPartLocation side)
AEPartLocation.UNKNOWN is used to
represent the cable in the middle.part - to be added partside - part placed onto sideAEPartLocation addPart(net.minecraft.item.ItemStack is, AEPartLocation side, net.minecraft.entity.player.EntityPlayer owner, net.minecraft.util.EnumHand hand)
is - new partside - onto sideowner - with owning playerAEPartLocation.UNKNOWN )IPart getPart(AEPartLocation side)
AEPartLocation.UNKNOWN )side - side of partIPart getPart(net.minecraft.util.EnumFacing side)
side - side of partvoid removePart(AEPartLocation side, boolean suppressUpdate)
side - side of partsuppressUpdate - - used if you need to replace a part's INSTANCE, without really removing it first.void markForUpdate()
DimensionalCoord getLocation()
net.minecraft.tileentity.TileEntity getTile()
AEColor getColor()
AEColor .Transparent other wise it returns the color of the cable in the center.void clearContainer()
boolean isBlocked(net.minecraft.util.EnumFacing side)
SelectedPart selectPart(net.minecraft.util.math.Vec3d pos)
pos - part positionvoid markForSave()
void partChanged()
LayerBaseboolean hasRedstone(AEPartLocation side)
side - side of partboolean isEmpty()
java.util.Set<LayerFlags> getLayerFlags()
void cleanup()
void notifyNeighbors()
boolean isInWorld()