Search in sources :

Example 1 with Attachment

use of net.mcft.copy.betterstorage.attachment.Attachment in project BetterStorage by copygirl.

the class ClientProxy method getAttachmentPointsHighlightBox.

private AxisAlignedBB getAttachmentPointsHighlightBox(EntityPlayer player, TileEntity tileEntity, MovingObjectPosition target) {
    Attachments attachments = ((IHasAttachments) tileEntity).getAttachments();
    Attachment attachment = attachments.get(target.subHit);
    if (attachment == null)
        return null;
    return attachment.getHighlightBox();
}
Also used : Attachment(net.mcft.copy.betterstorage.attachment.Attachment) Attachments(net.mcft.copy.betterstorage.attachment.Attachments) IHasAttachments(net.mcft.copy.betterstorage.attachment.IHasAttachments) IHasAttachments(net.mcft.copy.betterstorage.attachment.IHasAttachments)

Aggregations

Attachment (net.mcft.copy.betterstorage.attachment.Attachment)1 Attachments (net.mcft.copy.betterstorage.attachment.Attachments)1 IHasAttachments (net.mcft.copy.betterstorage.attachment.IHasAttachments)1