mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
Add correct interfaces for comparator / daylight detector
This commit is contained in:
parent
ac405c3cd4
commit
473febc73a
@ -4,9 +4,10 @@ import net.minecraft.server.TileEntity;
|
|||||||
import net.minecraft.server.TileEntityComparator;
|
import net.minecraft.server.TileEntityComparator;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
|
import org.bukkit.block.Comparator;
|
||||||
import org.bukkit.craftbukkit.CraftWorld;
|
import org.bukkit.craftbukkit.CraftWorld;
|
||||||
|
|
||||||
public class CraftComparator extends CraftBlockState {
|
public class CraftComparator extends CraftBlockState implements Comparator {
|
||||||
|
|
||||||
private final CraftWorld world;
|
private final CraftWorld world;
|
||||||
private final TileEntityComparator comparator;
|
private final TileEntityComparator comparator;
|
||||||
|
@ -4,9 +4,10 @@ import net.minecraft.server.TileEntity;
|
|||||||
import net.minecraft.server.TileEntityLightDetector;
|
import net.minecraft.server.TileEntityLightDetector;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
|
import org.bukkit.block.DaylightDetector;
|
||||||
import org.bukkit.craftbukkit.CraftWorld;
|
import org.bukkit.craftbukkit.CraftWorld;
|
||||||
|
|
||||||
public class CraftDaylightDetector extends CraftBlockState {
|
public class CraftDaylightDetector extends CraftBlockState implements DaylightDetector {
|
||||||
|
|
||||||
private final CraftWorld world;
|
private final CraftWorld world;
|
||||||
private final TileEntityLightDetector detector;
|
private final TileEntityLightDetector detector;
|
||||||
|
Loading…
Reference in New Issue
Block a user