2018-12-20 00:39:10 +00:00
|
|
|
package net.shadowfacts.simplemultipart.test;
|
|
|
|
|
2018-12-20 01:44:53 +00:00
|
|
|
import net.minecraft.entity.player.PlayerEntity;
|
|
|
|
import net.minecraft.util.Hand;
|
2018-12-20 00:39:10 +00:00
|
|
|
import net.minecraft.util.shape.VoxelShape;
|
|
|
|
import net.minecraft.util.shape.VoxelShapes;
|
|
|
|
import net.shadowfacts.simplemultipart.container.MultipartContainerBlockEntity;
|
|
|
|
import net.shadowfacts.simplemultipart.multipart.Multipart;
|
|
|
|
import net.shadowfacts.simplemultipart.multipart.MultipartSlot;
|
|
|
|
import net.shadowfacts.simplemultipart.multipart.MultipartState;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
|
|
|
public class GreenMultipart extends Multipart {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isValidSlot(MultipartSlot slot) {
|
|
|
|
return slot == MultipartSlot.NORTH;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2018-12-20 01:33:20 +00:00
|
|
|
@Deprecated
|
2018-12-20 00:39:10 +00:00
|
|
|
public VoxelShape getBoundingShape(MultipartState state, MultipartSlot slot, MultipartContainerBlockEntity container) {
|
|
|
|
return VoxelShapes.cube(0, 0, 0, 1, 1, 1/16f);
|
|
|
|
}
|
|
|
|
|
2018-12-20 01:44:53 +00:00
|
|
|
@Override
|
|
|
|
@Deprecated
|
|
|
|
public boolean activate(MultipartState state, MultipartSlot slot, MultipartContainerBlockEntity container, PlayerEntity player, Hand hand) {
|
|
|
|
System.out.println("part activated");
|
|
|
|
return true;
|
|
|
|
}
|
2018-12-20 00:39:10 +00:00
|
|
|
}
|