InactiveEndPortalBlock

Undocumented in source.

Constructors

this
this(sul.blocks.Block data, block_t active, ubyte direction)
Undocumented in source.

Members

Functions

onInteract
bool onInteract(Player player, Item item, BlockPosition position, ubyte face)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

direction
ubyte direction;
Undocumented in source.

Inherited Members

From Block

data
sul.blocks.Block data [@property getter]

Gets the block's sul data.

id
block_t id [@property getter]

Gets the block's SEL id.

java
bool java [@property getter]

Indicates whether the block exists in Minecraft.

javaId
ubyte javaId [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
javaMeta
ubyte javaMeta [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
bedrock
bool bedrock [@property getter]

Indicates whether the block exists in Minecraft.

bedrockId
ubyte bedrockId [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
bedrockMeta
ubyte bedrockMeta [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
solid
bool solid [@property getter]

Indicates whether a block is solid (can sustain another block or an entity) or not.

fluid
bool fluid [@property getter]

Indicates whether the block is a fluid.

hardness
double hardness [@property getter]

Indicates the block's hardness, used to calculate the mining time of the block's material.

indestructible
bool indestructible [@property getter]

Indicates whether the block can be mined.

instantBreaking
bool instantBreaking [@property getter]

Indicates whether the block can be mined or it's destroyed simply by a left-click.

blastResistance
double blastResistance [@property getter]

Gets the blast resistance, used for calculate the resistance at the explosion of solid blocks.

opacity
ubyte opacity [@property getter]

Gets the block's opacity, in a range from 0 to 15, where 0 means that the light propagates like in the air and 15 means that the light is totally blocked.

luminance
ubyte luminance [@property getter]

Indicates the level of light emitted by the block in a range from 0 to 15.

replaceable
bool replaceable [@property getter]

Boolean value indicating whether or not the block is replaced when touched with a placeable item.

flammable
bool flammable [@property getter]

Boolean value indicating whether or not the block can be burnt.

encouragement
ubyte encouragement [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
flammability
ubyte flammability [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
fallDamageModifier
float fallDamageModifier [@property getter]

Modifies an entity's damage. The value should be higher than 0.

hasBoundingBox
bool hasBoundingBox [@property getter]

Indicates whether the block has a bounding box which entities can collide with, even if the block is not solid.

box
BlockAxis box [@property getter]

If hasBoundingBox is true, returns the bounding box of the block as an Axis instance. Values are from 0 to 1

fullUpperShape
bool fullUpperShape [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
onCollide
void onCollide(World world, Entity entity)
Undocumented in source. Be warned that the author may not have intended to support it.
drops
Slot[] drops(World world, Player player, Item item)

Get the dropped items as a slot array.

xp
uint xp(World world, Player player, Item item)

Get the amount of dropped xp when the block is broken

miningTime
tick_t miningTime(Player player, Item item)
Undocumented in source. Be warned that the author may not have intended to support it.
onInteract
bool onInteract(Player player, Item item, BlockPosition position, ubyte face)

Function called when a player right-click the block. Blocks like tile should use this function for handle the interaction. N.B. That this function will no be called if the player shifts while performing the right-click/screen-tap.

onEntityInside
void onEntityInside(Entity entity, BlockPosition position, bool headInside)

Called when an entity is inside the block (or part of it).

onEntityStep
void onEntityStep(Entity entity, BlockPosition position, float fallDistance)

Called when an entity falls on walks on the block.

onEntityCollide
void onEntityCollide(Entity entity, BlockPosition position)

Called when an entity collides with the block's side (except top).

doRandomTick
bool doRandomTick [@property getter]

Boolean value indicating whether or not the block can receive a random tick. This property is only requested when the block is placed.

onRandomTick
void onRandomTick(World world, BlockPosition position)

If the property doRandomTick is true, this function could be called undefined times duraing the chunk's random ticks.

onUpdated
void onUpdated(World world, BlockPosition position, Update type)

Function called when the block is receives an update. Redstone mechanism should be handled from this function.

onRemoved
void onRemoved(World world, BlockPosition position, Remove type)
Undocumented in source. Be warned that the author may not have intended to support it.
onScheduledUpdate
void onScheduledUpdate(World world, BlockPosition position)

Function called by the world after a requets made by the block using World.scheduleBlockUpdate if the rule in the world is activated.

breathe
bool breathe(World world, BlockPosition position, bool checkFluid)

Boolean value indicating whether or not the upper block is air or isn't solid.

opEquals
bool opEquals(block_t block)
bool opEquals(block_t[] blocks)
bool opEquals(Block[] blocks)
bool opEquals(Block* block)

Compare the block names.

opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta