geforkt von Mirrors/Paper
SPIGOT-7873: Add powered state for skulls
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
0b4a111361
Commit
51e69e6788
@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.bukkit.craftbukkit.block.impl;
|
package org.bukkit.craftbukkit.block.impl;
|
||||||
|
|
||||||
public final class CraftPiglinWallSkull extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.Directional {
|
public final class CraftPiglinWallSkull extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.type.WallSkull, org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable {
|
||||||
|
|
||||||
public CraftPiglinWallSkull() {
|
public CraftPiglinWallSkull() {
|
||||||
super();
|
super();
|
||||||
@ -31,4 +31,18 @@ public final class CraftPiglinWallSkull extends org.bukkit.craftbukkit.block.dat
|
|||||||
public java.util.Set<org.bukkit.block.BlockFace> getFaces() {
|
public java.util.Set<org.bukkit.block.BlockFace> getFaces() {
|
||||||
return getValues(FACING, org.bukkit.block.BlockFace.class);
|
return getValues(FACING, org.bukkit.block.BlockFace.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// org.bukkit.craftbukkit.block.data.CraftPowerable
|
||||||
|
|
||||||
|
private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean POWERED = getBoolean(net.minecraft.world.level.block.PiglinWallSkullBlock.class, "powered");
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPowered() {
|
||||||
|
return get(POWERED);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPowered(boolean powered) {
|
||||||
|
set(POWERED, powered);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.bukkit.craftbukkit.block.impl;
|
package org.bukkit.craftbukkit.block.impl;
|
||||||
|
|
||||||
public final class CraftSkull extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.Rotatable {
|
public final class CraftSkull extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.type.Skull, org.bukkit.block.data.Powerable, org.bukkit.block.data.Rotatable {
|
||||||
|
|
||||||
public CraftSkull() {
|
public CraftSkull() {
|
||||||
super();
|
super();
|
||||||
@ -13,6 +13,20 @@ public final class CraftSkull extends org.bukkit.craftbukkit.block.data.CraftBlo
|
|||||||
super(state);
|
super(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// org.bukkit.craftbukkit.block.data.CraftPowerable
|
||||||
|
|
||||||
|
private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean POWERED = getBoolean(net.minecraft.world.level.block.BlockSkull.class, "powered");
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPowered() {
|
||||||
|
return get(POWERED);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPowered(boolean powered) {
|
||||||
|
set(POWERED, powered);
|
||||||
|
}
|
||||||
|
|
||||||
// org.bukkit.craftbukkit.block.data.CraftRotatable
|
// org.bukkit.craftbukkit.block.data.CraftRotatable
|
||||||
|
|
||||||
private static final net.minecraft.world.level.block.state.properties.BlockStateInteger ROTATION = getInteger(net.minecraft.world.level.block.BlockSkull.class, "rotation");
|
private static final net.minecraft.world.level.block.state.properties.BlockStateInteger ROTATION = getInteger(net.minecraft.world.level.block.BlockSkull.class, "rotation");
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.bukkit.craftbukkit.block.impl;
|
package org.bukkit.craftbukkit.block.impl;
|
||||||
|
|
||||||
public final class CraftSkullPlayer extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.Rotatable {
|
public final class CraftSkullPlayer extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.type.Skull, org.bukkit.block.data.Powerable, org.bukkit.block.data.Rotatable {
|
||||||
|
|
||||||
public CraftSkullPlayer() {
|
public CraftSkullPlayer() {
|
||||||
super();
|
super();
|
||||||
@ -13,6 +13,20 @@ public final class CraftSkullPlayer extends org.bukkit.craftbukkit.block.data.Cr
|
|||||||
super(state);
|
super(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// org.bukkit.craftbukkit.block.data.CraftPowerable
|
||||||
|
|
||||||
|
private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean POWERED = getBoolean(net.minecraft.world.level.block.BlockSkullPlayer.class, "powered");
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPowered() {
|
||||||
|
return get(POWERED);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPowered(boolean powered) {
|
||||||
|
set(POWERED, powered);
|
||||||
|
}
|
||||||
|
|
||||||
// org.bukkit.craftbukkit.block.data.CraftRotatable
|
// org.bukkit.craftbukkit.block.data.CraftRotatable
|
||||||
|
|
||||||
private static final net.minecraft.world.level.block.state.properties.BlockStateInteger ROTATION = getInteger(net.minecraft.world.level.block.BlockSkullPlayer.class, "rotation");
|
private static final net.minecraft.world.level.block.state.properties.BlockStateInteger ROTATION = getInteger(net.minecraft.world.level.block.BlockSkullPlayer.class, "rotation");
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.bukkit.craftbukkit.block.impl;
|
package org.bukkit.craftbukkit.block.impl;
|
||||||
|
|
||||||
public final class CraftSkullPlayerWall extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.Directional {
|
public final class CraftSkullPlayerWall extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.type.WallSkull, org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable {
|
||||||
|
|
||||||
public CraftSkullPlayerWall() {
|
public CraftSkullPlayerWall() {
|
||||||
super();
|
super();
|
||||||
@ -31,4 +31,18 @@ public final class CraftSkullPlayerWall extends org.bukkit.craftbukkit.block.dat
|
|||||||
public java.util.Set<org.bukkit.block.BlockFace> getFaces() {
|
public java.util.Set<org.bukkit.block.BlockFace> getFaces() {
|
||||||
return getValues(FACING, org.bukkit.block.BlockFace.class);
|
return getValues(FACING, org.bukkit.block.BlockFace.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// org.bukkit.craftbukkit.block.data.CraftPowerable
|
||||||
|
|
||||||
|
private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean POWERED = getBoolean(net.minecraft.world.level.block.BlockSkullPlayerWall.class, "powered");
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPowered() {
|
||||||
|
return get(POWERED);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPowered(boolean powered) {
|
||||||
|
set(POWERED, powered);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.bukkit.craftbukkit.block.impl;
|
package org.bukkit.craftbukkit.block.impl;
|
||||||
|
|
||||||
public final class CraftSkullWall extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.Directional {
|
public final class CraftSkullWall extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.type.WallSkull, org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable {
|
||||||
|
|
||||||
public CraftSkullWall() {
|
public CraftSkullWall() {
|
||||||
super();
|
super();
|
||||||
@ -31,4 +31,18 @@ public final class CraftSkullWall extends org.bukkit.craftbukkit.block.data.Craf
|
|||||||
public java.util.Set<org.bukkit.block.BlockFace> getFaces() {
|
public java.util.Set<org.bukkit.block.BlockFace> getFaces() {
|
||||||
return getValues(FACING, org.bukkit.block.BlockFace.class);
|
return getValues(FACING, org.bukkit.block.BlockFace.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// org.bukkit.craftbukkit.block.data.CraftPowerable
|
||||||
|
|
||||||
|
private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean POWERED = getBoolean(net.minecraft.world.level.block.BlockSkullWall.class, "powered");
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPowered() {
|
||||||
|
return get(POWERED);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPowered(boolean powered) {
|
||||||
|
set(POWERED, powered);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.bukkit.craftbukkit.block.impl;
|
package org.bukkit.craftbukkit.block.impl;
|
||||||
|
|
||||||
public final class CraftWitherSkull extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.Rotatable {
|
public final class CraftWitherSkull extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.type.Skull, org.bukkit.block.data.Powerable, org.bukkit.block.data.Rotatable {
|
||||||
|
|
||||||
public CraftWitherSkull() {
|
public CraftWitherSkull() {
|
||||||
super();
|
super();
|
||||||
@ -13,6 +13,20 @@ public final class CraftWitherSkull extends org.bukkit.craftbukkit.block.data.Cr
|
|||||||
super(state);
|
super(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// org.bukkit.craftbukkit.block.data.CraftPowerable
|
||||||
|
|
||||||
|
private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean POWERED = getBoolean(net.minecraft.world.level.block.BlockWitherSkull.class, "powered");
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPowered() {
|
||||||
|
return get(POWERED);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPowered(boolean powered) {
|
||||||
|
set(POWERED, powered);
|
||||||
|
}
|
||||||
|
|
||||||
// org.bukkit.craftbukkit.block.data.CraftRotatable
|
// org.bukkit.craftbukkit.block.data.CraftRotatable
|
||||||
|
|
||||||
private static final net.minecraft.world.level.block.state.properties.BlockStateInteger ROTATION = getInteger(net.minecraft.world.level.block.BlockWitherSkull.class, "rotation");
|
private static final net.minecraft.world.level.block.state.properties.BlockStateInteger ROTATION = getInteger(net.minecraft.world.level.block.BlockWitherSkull.class, "rotation");
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.bukkit.craftbukkit.block.impl;
|
package org.bukkit.craftbukkit.block.impl;
|
||||||
|
|
||||||
public final class CraftWitherSkullWall extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.Directional {
|
public final class CraftWitherSkullWall extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.type.WallSkull, org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable {
|
||||||
|
|
||||||
public CraftWitherSkullWall() {
|
public CraftWitherSkullWall() {
|
||||||
super();
|
super();
|
||||||
@ -31,4 +31,18 @@ public final class CraftWitherSkullWall extends org.bukkit.craftbukkit.block.dat
|
|||||||
public java.util.Set<org.bukkit.block.BlockFace> getFaces() {
|
public java.util.Set<org.bukkit.block.BlockFace> getFaces() {
|
||||||
return getValues(FACING, org.bukkit.block.BlockFace.class);
|
return getValues(FACING, org.bukkit.block.BlockFace.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// org.bukkit.craftbukkit.block.data.CraftPowerable
|
||||||
|
|
||||||
|
private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean POWERED = getBoolean(net.minecraft.world.level.block.BlockWitherSkullWall.class, "powered");
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPowered() {
|
||||||
|
return get(POWERED);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPowered(boolean powered) {
|
||||||
|
set(POWERED, powered);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren