public interface IPartHost
Do Not Implement
Modifier and Type | Method and Description |
---|---|
net.minecraftforge.common.util.ForgeDirection |
addPart(net.minecraft.item.ItemStack is,
net.minecraftforge.common.util.ForgeDirection side,
net.minecraft.entity.player.EntityPlayer owner)
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,
net.minecraftforge.common.util.ForgeDirection side)
Test if you can add a part to the specified side of the Part Host,
ForgeDirection .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(net.minecraftforge.common.util.ForgeDirection side)
Get part by side ( center is
ForgeDirection .UNKNOWN ) |
net.minecraft.tileentity.TileEntity |
getTile() |
boolean |
hasRedstone(net.minecraftforge.common.util.ForgeDirection side)
get the redstone state of host on this side, this value is cached internally.
|
boolean |
isBlocked(net.minecraftforge.common.util.ForgeDirection 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(net.minecraftforge.common.util.ForgeDirection 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.Vec3 pos)
finds the part located at the position ( pos must be relative, not global )
|
IFacadeContainer getFacadeContainer()
boolean canAddPart(net.minecraft.item.ItemStack part, net.minecraftforge.common.util.ForgeDirection side)
ForgeDirection
.UNKNOWN is used to
represent the cable in the middle.part
- to be added partside
- part placed onto sidenet.minecraftforge.common.util.ForgeDirection addPart(net.minecraft.item.ItemStack is, net.minecraftforge.common.util.ForgeDirection side, net.minecraft.entity.player.EntityPlayer owner)
is
- new partside
- onto sideowner
- with owning playerForgeDirection
.UNKNOWN )IPart getPart(net.minecraftforge.common.util.ForgeDirection side)
ForgeDirection
.UNKNOWN )side
- side of partvoid removePart(net.minecraftforge.common.util.ForgeDirection side, boolean suppressUpdate)
if you want to drop the part you must request it prior to removing it.
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.minecraftforge.common.util.ForgeDirection side)
SelectedPart selectPart(net.minecraft.util.Vec3 pos)
pos
- part positionvoid markForSave()
void partChanged()
LayerBase
boolean hasRedstone(net.minecraftforge.common.util.ForgeDirection side)
side
- side of partboolean isEmpty()
java.util.Set<LayerFlags> getLayerFlags()
void cleanup()
void notifyNeighbors()
boolean isInWorld()